Eclipse is using git

Source: Internet
Author: User
Tags email account using git

Some eclipse already comes with git, don't install it.

Suppose, think again about the installation. Ability to uninstall git, uninstall

Different eclipse offload is not the same:

1. In Eclipse, click menu "Help" and "about Eclipse". The dialog box that appears in Figure 1 is displayed. Click on the "Installation Details" button to pop up the dialog box shown in Figure 2. Select the plug-in you want to uninstall (press and hold CTRL to multi-select), and click the "Uninstall ..." button.


2.adt--about Adt.

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvaghoy2nja2tr/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">


Click Installation Details

Pop-up the following box to find the corresponding plugin to uninstall



After selecting the plugin that needs to be uninstalled, click Uninstall to uninstall. CTRL + the left mouse button to choose more Ha


1. After the uninstallation is complete. To install Git, as with the general plug-In process:

"Help--install new software


In the box that pops up, enter git:http://download.eclipse.org/egit/updates/

Click OK, assuming no response, please click on the "Add" front of the small triangle. Locate the Git-named item that you just created. Wait a minute, this box appears



Name the following 2 items to select. Click Next. into the installation.

After installation. Will restart Eclipse, installation complete



Or, click Help--marketplace, enter Git inside, find. Then install (some eclipse has this, and some don't)


After installation, proceed, a simple configuration, fill in our username and email

"Preferences" Team "git>configuration



Click Add Entry to enter the value of key and value in the popup box.
Key, name fill in: User.name,value is your name.
E-mail: User.email value: Your email account. When you submit your code. Will proactively extract this information and send it to the GIT remote repository along with the code


2. (1) Submit the project to the remote Git repository for the first time. (I use Githob as a sample, Githob is more useful, we can put their own projects all up.) The ability to clone and develop the code from anywhere. can also be used as a network disk)

To Githob. Register an account. Log in.

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvaghoy2nja2tr/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">

Click New Repository. Enter the project name as required. Project Introduction, choose Public,private. to charge for it.

Click Create. You're ready. Name, don't use Chinese oh.

Get what you see. Click HTTP, copy HTTPS, and for a moment, submit the project with




(2) Create a project and a local git repository

Open Eclipse, create a project, and then

Sequence: File > Team > Share Project Select Git>next

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvaghoy2nja2tr/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">

Tick and click on the items listed below. Then click on the button below. Finally, finish. On
Created a local warehouse


(3) Submit the code to the local repository (the code must be submitted to the local repository before the ability to commit to the remote Git repository)

You first need to submit the code to the local repository:
In order: Right-click Project >team>commit


Enter the gaze, then tick the file you need to submit. Or a small hook on the right. Click Select All.

And then. Commit. Commit to the local repository (commit and Push git has this, some do not, use he can put the code directly to the local and submitted to the remote Git up).


(4) Push the project to the remote repository:

Project Right-click >>team>remote>>push

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvaghoy2nja2tr/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">

Enter the URL: above githob. Create a project to get to, copy it in. Fill in your login Githob's account Password,next

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvaghoy2nja2tr/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">


Click on the small triangle. Click on Master,add Spec. Finish

After the completion. Login to Githob to see the project you just submitted.



(5) Put the Remote Warehouse project. Cloning into eclipse

Switch ecpilse to Git view
Click Clone Git Repository

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvaghoy2nja2tr/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">

Or, click: there is an arrow that.

Fill in the inside. The URL address of the project you need to clone: Enter your account number and password





>>next>>next

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvaghoy2nja2tr/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">

Click Browse and select a place to put the project file. Do not put in Eclipse working folder

Finish


After the completion. Import projects to eclipse with import


It's like importing general project.


(5) Submit code once to Git repository

Committing the code and committing the entire project above to Git is the same. First, commit, commit the code that you need to submit to the local, then, remote. Push Submit the project to the remote.


Other, click Project, right button, also can create branch, branch can also submit up. But. He will not be with the main code and together. With merge, you can merge.


docid=6388638 "target=" _blank ">









Eclipse is using git

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.