GITHUB - Part 1
GITHUB - Part 1
1) Create a GitHub account using https://github.com/. Use your personal email address and official
emails come with restrictions.
2) Create a new repository (it’s a container where all stuff goes) using the + sign as shown below:
3) Provide the necessary details like repository name. Select repository as Public and initialize the
READMD. Click ‘Create’
4) Now, your repository is created, and it looks as:
5) To download the repository, we have option ‘Clone and download’. Also, there are two options
to copy repository locally using ‘SSH’ and ‘HTTPS’
6) Copy the SSHRepositoryLink on to your clipboard.
7) These instructions presume that you have SSH key generated. However, if you don't have one
please follow the step-by-step procedure in this link
(https://help.github.com/en/enterprise/2.15/user/articles/generating-a-new-ssh-key-and-
adding-it-to-the-ssh-agent ) before you proceed further.
Now, the folder is copied to my ‘Downloads’. Just check the ‘Downloads’ have you got the folder
demo?
10) Get the list of the files in the folder demo, use:
For Windows: dir
For Mac: ls
11) To view the content of the file:
For Windows: type README.md
For Mac: cat README.md
git init
Create and add a README.md file. You can use a normal text editor
depending on which OS you are using.
git status
Add the origin where we have to push the file. This is the
SSHRepositoryLink you copied when you created the repository.