Eclipse and myeclipse install and use git (egit) graphic notes

Source: Internet
Author: User

Eclipse and myeclipse use the GIT plug-in (egit) diagram

When developing Java, javaee, and other related programs, we will use eclipse or myeclipse and use git as the Version Control Software. Therefore, we need to integrate the GIT plug-in on these ides, egit is the development plug-in of the eclipse Foundation, so it has good compatibility. Next we will describe the specific installation and use process in the form of a legend.

There are two main installation methods: 1. Directly download the egit plug-in package, which is also divided into two forms: (1) then place the pressure in the dropins folder of eclipse or directly put it in the corresponding folder.

Chart 1

(2 ). in the dropins folder, create a new *. link file, and then enter Path = % plugins_path % in the file. In this way, you do not have to worry about confusion in the future when there are too many plug-ins, it is also convenient to remove the relevant plug-ins. The specific content is shown in:

Chart 2

Chart 3

Path = % plugins_path % can have multiple rows. Each row represents a different plug-in path.

2. Install eclipse marketplace on Eclipse first, and then automatically download and install it through market place.

First, find the "help" menu of Eclipse, then "Install newsoftware", and find the Section as shown in. Then find the software "marketplace client" and select and install it.

Chart 4

After marketplaceclient is installed, eclipse will be restarted. Then, we will find that there is an additional "eclipsemmarketplace" under the "help" menu, and it will be OK after you start the operation.

Chart 5

There are some differences between eclipse and myeclipse in the form of installation. myeclipse needs to add a new "Site" in its configuration center, and then add http://download.eclipse.org/egit/updates-2.3#personal sites, the specific operation is as follows: (this method is a little troublesome. We recommend the first method)

Chart 6

After the plug-in is installed, restart eclipse and find that git appears under window> preference> Team. You can start to configure and use this plug-in. The specific configuration and usage steps are described as follows.

1. First, confirm that we have installed the account space for applying for GitHub (or another git repository. Here we use http://www.github.com as our repository for explanation.

2. Then we use the built-in eclipse tool to generate the key required by GitHub, window-> preference, and then perform the following operations:

Chart 7

3. For more information about how to apply for a key and how to use it, visit the secret.

4. start to use the egit plug-in for version control.

Chart 8

Select the remote method (URI) and next, for example:

Chart 9

Next, and then encounter the following situation:

Chart 10

 

After finishing, select Java project (or Java EE web project ). For example:

Chart 11

5. The repository is cloned from the remote host to the local host. Next we will test how to use egit to submit the modified Code and files of this course. The specific steps are as follows.

1) create a file under SRC;

2) Right-click the project and choose team> commit;

Chart 12

3) after the commit is complete, right-click the project and choose team> remote> push;

Chart 13

Some operations in this step may not be clear to beginners. You can go to http://blog.csdn.net/chinaonlyqiu/article/details/8826767.

6. We will understand the preliminary use of egit.

In this way, we can use egit like SVN, which is very convenient.

 

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.