Github configuration User Guide, github User Guide
1. Create a project and enter the project folder.
2. For details about how to initialize the ssh key, refer to the Guide on the official website. (A pair of keys are generated on the local machine and the public key is uploaded to the sshkey on the official website)
Https://help.github.com/articles/generating-ssh-keys/
3. initialize the user name and email address
$ Git config -- global user. name "defnngj" // give yourself a username
$ Git config -- global user. email "defnngj@gmail.com" // enter your mailbox
4. git init
5. git add.
6. git commit-m "message for this commit"
7. touch README. md
8. git add README. md
9. git status
10. Go to the github website to create a repo such as "ts. git"
11. git remote add origin git@github.com: wuzhuzhu/ts. git
If fatal: remote origin already exists is encountered, enter:
Git remote rm origin
12. git remote add origin git@github.com: wuzhuzhu/ts. git
13. git push-u origin master
Counting objects: 19, done.
Compressing objects: 100% (16/16), done.
Writing objects: 100% (19/19), 4.54 KiB, done.
Total 19 (delta 1), reused 0 (delta 0)
To git@github.com: wuzhuzhu/ts. git
[New branch] master-> master
Branch master set up to track remote branch master from origin.
14. Pull the git document:
On a remote host:
Git remote add origin git@github.com: wuzhuzhu/ts. git
Git pull origin master
Problems:
The windows client is a scum... you still need to use git shell or even create a repo. It's always a network error. The remote server needs to handle ssh key... git
Remote add origin git@github.com: wuzhuzhu/ts. git
It refers to the establishment of the origin to this git URL, do not repeat the binding.
The above is the github configuration of the personal simplified version.