The first step: the establishment of a git repository
cd to the root directory of your local project, run git commands
git init
Step two: Add the All project files to the repository
git add .
If you want to add a specific file, simply replace a specific file name
The third step: add files to commit warehouse
git commit -m "注释语句"
Step Four: Create your own Repository go on github
click on the following Create repository, will enter into a page similar to the following, to get the address https warehouse created red box is marked
Step five: the focus here will be associated with the local repository to github
git remote add origin https://github.com/2632/aaaa
Behind https link address into your own warehouse url address, which is above the red line out of the winning address
Sixth step: Before uploading github, first pull it, execute the following command:
git pull origin master
The seventh step, which is the last step, upload the code to the remote repository github
git push -u origin master
After the execution, if not abnormal, awaiting execution by uploading a complete success, the middle may let you enter the Username and Password, you just enter github account and password on the line