Preparatory work:
Purpose: To down the required items from the remote warehouse on GitHub
Eclipse uses git plugin to download projects on GitHub
Eclipse version: eclipse4.5 64-bit
JDK version: jdk-1.7 64-bit
Project type: Maven Project
Note: The eclipse version comes with a git plugin, and the lower version installs the Git plugin itself, which is not covered here using the Eclipse High version and the low version of the Git plugin.
Method One: Use the git command down project
Under any directory, right-click the "Git Bash here" pop-up Command window and enter the following command:
git clone https://github.com/someone/xxx.git
Submit the changes to the remote repository locally
git Add.
Git commit-a-m ' version1.3 '
Git push Origin Master
Method Two: Switch to git view via git plugin to do the following
1.eclipse Switch to Git view
2. Do the following:
3. Click Next:
4. Click Finish:(Directory is any path, but it is best not to put in the workspace, you can put in a non-system disk under the other disk, create a "GitHub" folder, which is specifically used to hold down the GIT project)
At this point, clone succeeds from GitHub, as follows:
5. Select Right click on "Import Project"
6. "Import Existing Eclipse Projects" is selected by default, the first option
7. Click Next:
8. Finally click Finish,eclipse to switch to the Java view to see the imported items
Method Three: Import by File--import--git Way
1.file--import
2. Check git mode (for import from Git)
3. Select "Clone URI" (means import from remote GitHub to local eclipse)
4. Enter the remote Githuburi and click Next
Click Next
Click Next
Click Next
Click Finish
This eclipse imports GitHub remote project successfully
Eclipse uses git to download projects