Eclipse and MyEclipse Install and use Git (egit) illustrated notes

Source: Internet
Author: User
Tags using git

Eclipse, myeclipse using git plugin (egit) diagram

(Turn) Original from: http://www.xuebuyuan.com/446322.html

In the development of Java, EE and other related programs, we will use Eclipse or myeclipse, while using Git as version control software, so we need to integrate GIT plug-ins on these Ides, and Egit is the Eclipse Foundation development plug-in, So the compatibility is good, the following we will be in the form of a legend to describe the specific installation and use process.

There are two main ways of installation: 1. Download the Egit plug-in package directly, which is also available in two forms: (1) then put the pressure into the eclipse's Dropins folder or directly into the corresponding folder.

Chart 1

(2). In the Dropins folder by creating a new *.link file, and then enter path=%plugins_path% in the file, this way, you can not worry about the later plug-in confusion, but also easy to remove the relevant plug-ins. The details are as follows:

Chart 2

Chart 3

The path=%plugins_path% can have more than one line, and each row represents a different plug-in path.

2. Install Eclipse MarketPlace on eclipse First and then automatically download the installation via the market place.

First find the "Help" menu for Eclipse, then "Install newsoftware", and then find the section as shown. Then find the "Marketplace Client" This software, and then check the installation is OK.

Chart 4

After the marketplaceclient is installed, the eclipse will be restarted, and then we will find a "eclipsemmarketplace" in the "Help" menu, and the operation will be OK.

Chart 5

There are some forms of the form of Eclipse and MyEclipse installed here, MyEclipse need to go to its configuration center to add a new "site", and then put http://download.eclipse.org/egit/ updates-2.3 Add personal Sites, specific operations such as: (Feel a little trouble in this way, recommend the first way)

Chart 6

After the plug-in is installed, restart Eclipse and discover that Git was successful under Window->preference->team. You can start configuring and using this plugin, and the specific configuration and usage steps are outlined below.

1. First make sure that we have installed the account space for GitHub (or other git repositories). Here we use the http://www.github.com as our warehouse to explain.

2. Then we use Eclipse's own tools to generate the key that GitHub needs, window->preference, and then do the following:

Chart 7

3. About the application key to do what and specific how to use downward, here no longer repeat, want to know the friend, can visit http://blog.csdn.net/chinaonlyqiu/article/details/ 8826767来 obtain the relevant uses and methods thereof.

4. Then start version control by using the Egit plugin.

Chart 8

Select the remote Way (URI), and then next, such as:

Chart 9

Next, and then encounter the following situation:

Chart 10

After finish, choose Java Project (choose according to your own needs, or it can be Java EE Web project, etc.). Such as:

Chart 11

5. The repository is from the remote Clone (clone) to the local. Let's test the use of Egit to submit our revised code and files, the following steps.

1) Create a new file under SRC;

2) Right-click Project->team->commit;

Chart 12

3) After commit, start right-click Project->team->remote->push;

Chart 13

Some of the actions in this step, perhaps the novice friends do not quite understand, you can go to see http://blog.csdn.net/chinaonlyqiu/article/details/8826767 related introduction.

6. We understand the initial use of this egit.

This way, we can use egit like SVN, which is convenient.

(go) Eclipse and myeclipse install and use Git (egit) schematic notes

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.