Deploy a Java project from eclipse to GitHub with Gitbash

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.