Summary of using Git tips in eclipse

Source: Internet
Author: User
Tags using git

I've been using SVN before, just using Git is a bit lame, and today I'm going to summarize some of the common techniques in using git

1, restore

You need to restore a class after editing a section, as follows

Right-click the file you want to restore--"team--" show in history appears as follows

This shows the version you submitted, select the version you want to restore--right click--"reset--" hard

2. Contrast

Modified classes are compared to files on the Git library (often used to resolve conflicts)

Right-click on your project--"team--" Synchronize workspace--"find the document you want to compare-" appears as follows

3, ignore the submission, has been submitted to the local warehouse file discard push

①, choose the file you want to ignore--"team--" Ignore (This action will add the ignore path or file in. gitignore), when submitted again will not display the ignored files;

②, if the file has been submitted to the local repository, push do not want to push to the remote, select the file you want to process--"team--" Remove from index--"Repeat step ① again, push is not to push the file

If you want to commit again, you need to remove the ignore path from the. Gitignore

Summary of using Git tips 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: 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.