What is the process to revert back to a previous commit if you are using sourcetree? Please no command line help, I understand how you would achieve the same result there but am specifically looking to do it with my friendly atlassian tool.
What exactly do you mean by revert?
You can commit a reverse commit by rightclicking on a commit and selecting Reverse commit
. This will effectively create a new commit that negates the changes you made in your selected commit.
The commit with the changes you negated will still exist.
You can checkout an earlier commit by doubleclicking on an earlier commit or rightclicking and selecting checkout
. This will change your code to the state it was for your selected commit, so without the changes from later commits.
The commit with the changes you negated will still exist.
You can reset to an earlier commit. This will remove the commit with the changes you want to negate. (They can normally still be recovered using the reflog)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With