Spent an afternoon kung Fu finally is to put this puzzle game small project deployed to GitHub, with the Gitbash command appeared a lot of problems, the reason is of course they did not play cooked, some instructions are pure English, eh.
http://blog.csdn.net/pony_maggie/article/details/42201435, this blog is about this operation, as for the other clone or something, temporarily not used. Here is my order in turn.
First build an empty warehouse, the default is None, do not panic initialization of a readme.md, and so on upload and then add one.
Init initializes a. git hidden file and changes the folder to a manageable git version file.
Git remote add Origin URL to increase the target repository for push
Git commit-am "First commit" (-am "XXX" adds an additional commit message)
git remote-v lists the details, the-v option (this is the shorthand for –verbose, the first letter), and the corresponding clone address is displayed.
The first git push error occurred because there is now no master branch.
1, Master is the main branch, you can also build some other branches for development.
2, GIT push origin master means to upload the local current branch code to the Master branch. Git push is to upload all the local branch code to the remote corresponding branch.
The second time GIT push Origin master succeeds. I've entered GitHub's login account and password here before, so there's no pop-up here.
Deploy a Java project from eclipse to GitHub with Gitbash