1. Registered Account
https://github.com/
2. Create a warehouse
3. Need to install Git
http://msysgit.github.com/
4. Create the SSH key locally ( not necessary, do not create SSH can ignore the 4th step )
Follow the steps to enter directly on the line
Ssh-keygen-t rsa-c "[Email protected]"
Verify that SSH key is successful
ssh-t [email protected]
There will be. SSH Folder-open folder
Open id_rsa.pub copy inside the content
To paste to GitHub, follow these steps:
Https://github.com/settings/keys
5. Join the GIT repository
Git init
6. Join the submission task staging area
git Add.
(Note: on behalf of all, if uploading the specified file can be replaced by a file name.) )
7. Submit
git commit-m "comment statement"
8 . Link the local warehouse to GitHub and execute the. config in the Git folder will add content
Git remote add Origin https://github.com/eeds-wangwei/work.git
9, to pull a bit first
Git pull Origin Master
10. upload code to github remote repository
Git push-u Origin Master
Enter GitHub user name/password
That's OK.
git uploads items to GitHub