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