Git plugin restore files in eclipse

Source: Internet
Author: User

If you modified a file that was not submitted to the local library (add index), how do you restore it? The Git plugin does not provide a restore method directly as the SVN plugin does. In fact, whether you commit to a local library or a remote library, the essence of the restore operation is to restore the current version of the file to a previous version, because Git will record each modification as a new version. The following are the steps:

1. To restore the index2.html file as an example, open the index2.html file,

2. Right-click on the file, select Team menu, then select Show Local History menu,

3. In the right-hand file Modification History list, select the historical version you want to view, right-click,

4. In the right-click menu, compare current with local can be different than the selected version and the local version of the file:

5. After the comparison, if it is to restore to the version, then click on the right menu get contents start to restore the file, this will pop up the prompt box,

6. Prompt box: Ask if you want to overwrite the current file with the selected version file, click Yes to complete the restore, click Cancel.

Precautions

Git will record every modification as a new version.

Git plugin restore files 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.