The use of Git in eclipse

Source: Internet
Author: User

First install the Egit plug-in in eclipse, such as:


2. Click Add




Installing plug-ins for Eclipse is rarely encountered and is not masked. The installation process is not long and can wait.

After the installation is successful, we can use it.

First, upload the code to the local warehouse

We create a new Android project, right-click, select Share project in Team

If you use it for the first time, you'll need to create a local repository first, which is uploaded to the local repository before it can be uploaded to the remote repository. So click Create here.

When you're done, you'll see that our project becomes this way, with one more question mark on each.

In the Android project, we do version management, but do not use the Management bin this folder, we have to ignore this folder, the way to ignore the following:

Select the file or folder, right-click, and select Ignore in team.

After doing this, we have one more file in the code for our local warehouse project,

Files that do not require version management are documented here:

Once this is done, we can submit the code to the local repository:


Second, upload the code to the remote repository

1. Create a new warehouse:
After logging on to GitHub:

And then:

Enter the warehouse name and click Create.

After the creation we can upload:

And that's it:

This allows you to upload the code.

Many steps, the process is actually very simple. I've had some articles about the commands used in Git, and it's interesting to see.

The use of Git 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: 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.