GITF Remote Code Library rollback (Webstorm)

Source: Internet
Author: User

git Remote code library rollback (webstorm )

1. Scene

Added a file "file-for-test.js" to git 's control

Three modifications were made, three commits were made, and a push was made

git log results such as:

The contents of the "file-for-test.js" file are as follows:

Now hopefully, roll back the "file-for-test.js" fileunder the Remote Code library to theversion of "//lyn test1"

2. Operation Step 2.1. "Version Control"--"Log"

2.2. Right-click the//lyn test1"line,"Reset Current Branch ... "

2.3. Select " Hard", click"Reset"

At this point git log results such as:

2.4. Key steps: Set upForce Push2.4.1. "VCS"--"Git"--"Push"

2.4.2. "Configure"

2.4.3. Tick "Allow force push","OK "

2.5. "VCS"--"Git"--"Push"

2.6. Tick "Push Tags", select"Current Branch ", select"Force Push"

2.7. "Force Push"

2.8. OK

git log results such as:

The contents of the "file-for-test.js" file are as follows:

GITF Remote Code library rollback (webstorm)

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.