1024programmer Blog Git rollback version_Idea can roll back the version twice_open-java-star’s blog

Git rollback version_Idea can roll back the version twice_open-java-star’s blog

class=”markdown_views prism-atom-one-dark”>

git fallback version

First open the history in the obtained remote project

Insert picture description here

View historical versions

Insert picture description here

You need to pay attention at this time – be sure to save two version numbers

Copy the current version number first

Insert picture description here

Copy the version number you want to go back

Insert picture description here

Get two version numbers

Insert picture description here

Prepare to fallback

Insert picture description here

First fallback

Insert picture description here

The fallback code is successfulInsert picture description here

Note – this is not yet complete –> the version at this time cannot be pushed to the remote warehouse

The second fallback (note the two choices)

Insert picture description here

The fallback is successful at this time

Add the rolled back version to the staging area

Insert picture description here

Add the rolled back version to the local warehouse

Insert picture description here

Push the rolled back version to the remote warehouse

Insert picture description here

Push successfully

Insert picture description here

Compare the changes of the remote warehouse before and after the rollback

Insert picture description here
Insert picture description here

Rollback succeeded

So far, the rollback version in idea is successful! ! !

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/git-rollback-version_idea-can-roll-back-the-version-twice_open-java-stars-blog/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索