1. Create a remote library repository
You can see the creation code:
// Turn this directory into a repository that git can manage // add files to the warehouse // "Firstcommit"// submit file to warehouse // associated remote repository // push all the contents of the local library to the remote library
2. Set Account SSH key
If you do not have these three files, you must first enter
$ ssh-keygen-t rsa-c "[email protected]163[email protected]163//ssh and-keygen no space between, Otherwise, bad escape character ' Ygen ' error will occur
Add the resulting id_rsa.pub public key to the remote library
Note: If a permission denied error occurs, SSH error may be
3. Upload a local project via the above command-line operation
Reference article: http://www.cnblogs.com/specter45/p/github.html
Getting started with GitHub upload a local project--notes