I need to perform the equivalent of the following Git command in SourceTree:
`git revert -m 1 <commithash>`
This command reverts a merge commit while keeping changes from one parent branch and discarding changes from the other.
@Carlos Durán welcome to the Atlassian community
You can commit a reverse commit by right clicking 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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.