Eclipse configuration git release project to GitHub

Source: Internet
Author: User

First, install the plug-in

Menu bar Help--Install New software...-->> Enter http://download.eclipse.org/egit/updates-->> in work with Tick Eclipse Git Team provider and jgit-->> Click Next, go to install, restart Eclipse

Second, configure Git

menu bar Windows--Preferences, Team---Git Configuration, click Add Entry ..., add name and email

After logging in to GitHub, click the New Repository button in the lower right corner to add the project code warehouse-->> Enter repository name (suggested with the name of the project to be submitted)

Third, associated git

Note: 1, the first step if the error, cannot read file/.gitconfig, directly find the file delete can

2. If you have previously installed and used git to submit a project to GitHub, the first step is to directly load the previously generated SSH key

1. Give the public key in Eclipse and add it to GitHub repository.

In the menu bar, open window→preference→general→network connection→ssh2→key management→generate RSA Key ... →apply→save private Key ...

2, associated with Git. Select the item you want to publish, right-click, Team---Share project, choose Git, click Next. Tick the use or create repository in parent folder of project, select the project you want to publish, click Create Repository, and click Finish.

3, publish the project. Select the item you want to publish, right-click, Team---commit, fill in the Commit message, tick Select all, click Commit. Note: At this point, only commit to local git and push is required to submit to GitHub.

4. Post to GitHub. Select the item you want to publish, right-click, Team---Remote, Push, paste Uri, fill in user and password, click Next, click the drop-down box for source ref, select Mast, click Add Spec, Click Finish and click OK to finish.

Eclipse configuration git release project to GitHub

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.