I am trying to roll back to a particular commit using Tower v 1.4.16 with Mac 0SX v 10.6.8. When I right-click on the commit, the option to "Roll Back to This Commit" is greyed out. Why is this happening?
In case you're using the Tower Git client, you can simply hit CMD+Z to undo the last commit: You can use same, simple CMD+Z keyboard shortcut to undo many other actions, from a failed merge to a deleted branch!
No, you can't undo, rollback or reverse a commit.
To undo the last commit from a remote git repository, you can use the git reset command. command. This will undo the last commit locally. command to force push the local commit which was reverted to the remote git repository.
Changing the Last Commit: git commit --amend. The git commit --amend command is a convenient way to modify the most recent commit. It lets you combine staged changes with the previous commit instead of creating an entirely new commit.
And problem solved - I did not have the (head) selected over in the left-had column. Once I clicked "master (HEAD)". The option to Roll Back to This Commit and Revert This Commit were available.
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