Using GitHub in Eclipse

Source: Internet
Author: User

Summary:

Implementation: Git->eclipse, Eclipse->git bidirectional

1. Installing the Egit Plugin

Select Help->eclipse Marketplace in Eclipse, enter Egit in search, locate and install

2. Importing GitHub projects

2.1. Find the source project you want to import on GitHub, such as:
Https://github.com/sumoli/gallery-by-react.git
2.2. Select File->import->git->projects from Git in eclipse

Click Next

Select next to enter the branch selection, where the master is selected

Select next to configure the local project storage path

Select Next and select


Click Finish to import it locally, as shown in

3. Submit to GitHub

3.1. Local Warehouse-github
3.1.1. Submitting to the Local warehouse


Click the Commit button to submit the code to the local repository (you can also click on the commit and push button to submit the code to the local repository and upload it to GitHub), which uses a commit
Select the file you want to submit, double-click to view the changes, click Commit, and after the submission is complete

3.1.2. Syncing to a GitHub account
How do I submit it to a GitHub account? Push the code onto GitHub. Right-click Project Select Team--Remote---Push

Click Next-next Refresh git Account page appears

3.2. Sync your github project with one click
Direct Commit-commit and push

4.eclipse Sync Project to GitHub

Create a new Eclipse project
Right-click Projects->team->share Project


Tick use or create repository in parent folder of Project
and then tap

The catalog will find a more. git folder.
Right-click on "Project"->team->commit Local commit


Next, you can
Note: The submitted address must be pre-created on GitHub to create an empty project address, if the point of submission, refresh GitHub page did not submit up, clickable force Update. Submit.

5. Tips and Issues

5.1. Configure user account information
User information for GitHub is configured in the configuration, Team-I, Windows, Preferences.
5.2. Error there is no staged files
Submit if error There is no staged files, then go to windows->preferences configuration tick off

Using GitHub in Eclipse

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.