Skip to main content

How to Create Repositary

Steps to Create Repository​

  1. On the GitHub page, click on the + drop-down menu in the upper-right corner and select New repository.
img-1
  1. Enter a name for your repository, for example, sample.
img-2
  1. Choose the visibility of your repository (private or public).
img-3
tip

It is recommended to keep your repository public.

  1. Click the Create repository button to create your repository.
img-4
  1. You will see an empty repository page.
img-5
  1. Open your Git Bash (command line) and run the following command, replacing <repository-link> with the link available on your repository:
img-6
git clone <repository-link></repository-link>
img-8
tip

Replace <repository-link> with the actual link available on your repository

  1. You will see a new folder named sample on your desktop.
img-7

Account Setup Credentials​

To set up your account credentials for Git, follow these steps:

  1. Open a terminal or command prompt.

  2. Set your username globally using the command:

git config --global user.name "Your Username"
  1. Set your email globally using the command:
git config --global user.email "[email protected]"