Eclipse uses git to download projects

Source: Internet
Author: User
Tags git clone

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

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.