1 Download git locally
2 Go to your project location
3 git init
4 git Add.
5 git commit-m ' first commit '
6 Creating an SSH KEY
Take a look at your C-drive user directory there is no. ssh directory, some words to see if there is no Id_rsa and id_rsa.pub these two files, have jumped to the next step, did not create by the following command
$ ssh-keygen-t rsa-c "[Email protected]"
7 into your GitHub.
Find Settings-ssh-and-gpgkeys
8 Open your computer's C drive. Locate the. ssh. Copy the contents of the id_rsa.pub into the key content box below the title, and finally click Add SSH key
9 and then we can associate the local warehouse with GitHub.
10 Copy the address of a new item on GitHub
git remote add URL on Origin GitHub
11 Finally, we can push all the contents of the local repository to the remote repository (GitHub).
Git push-u Origin Master
12 after the success of the code is like this
Git uploads project to GitHub tutorial