1. Build the project into the project folder
2. Initialize SSH key See the 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 the GitHub site to create 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. Input:
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 the git document:
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 to create repo are always network error remote server to take care of ssh key ... git
Remote Add Origin Git@github.com:wuzhuzhu/ts.git
It means making origin to this git URL, not repeating the binding.
The above is the personal simplified version of the GitHub configuration, to the small partners to refer to the next