1, git init turn it into a Git repository;
2, git add to add items to the warehouse.;
3, git commit -m "first commit" to submit the project to the warehouse;
4, git remote add origin https://github.com/xxxxxx.git local and remote warehouse warehouse associate;
5, git push -u origin master the local repository project pushed to the remote repository (that is, Github) on;
6, if the new remote repository is automatically created when the README file error, can be first incorporated the following command
git pull --rebase origin master
7, again push