Git is a distributed version control system. it was originally written by LinusTorvalds and used for Linux kernel code management. After its launch, Git has also achieved great success in other projects, especially in the Ruby community. Currently, many well-known projects, including Rubinius, Merb, and Bitcoin, use Git. as a programmer, github is not a bit difficult. 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.