SourceTree operation

rollback to a commit

1. Select the branch that needs to be rolled back and update to the latest.
2. Open the history tab, set it to all branches and display remote branches, select the branch record that needs to be rolled back to, right click == "reset current branch to this commit ==" force merge
insert image description here
insert image description here

insert image description here
3. Select the latest submission, right click == "Reset the current branch to this submission == "soft merge
insert image description here
insert image description here
4. Just submit the changes
insert image description here

Guess you like

Origin blog.csdn.net/u010778229/article/details/130318664