1. Create project, enter project folder
2. Initialize SSH key See official website Guide. (This machine generates a pair of key,public key to the official website Sshkey below)
https://help.github.com/articles/generating-ssh-keys/
3. Initialize user name, mailbox
$ git config--global user.name "defnngj"//Give yourself a username
$ git config--global user.email "defnngj@gmail.com"//fill in your own 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 GitHub website to build a repo such as "Ts.git"
11.git Remote Add Origin Git@github.com:wuzhuzhu/ts.git
If you encounter fatal:remote origin already exists. 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 (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 Git documents:
On the remote host:
Git remote add Origin git@github.com:wuzhuzhu/ts.git
Git pull Origin Master
The problems encountered:
Windows client is slag ... Or do you want to use git shell or even create repo are always network error remote server to handle SSH key ... git
Remote Add Origin Git@github.com:wuzhuzhu/ts.git
is to develop origin to this git URL, do not repeat binding.
The above is the personal simplified version of the GitHub configuration, to the small partners for reference