I know you can revert a single commit and right-clicking the commit and clicking revert. But is there a way to revert multiple commits (like the latest five commits on a single branch)?.
you could revert back to the commit you want and force-push it, but that would destroy some of your history, which is what you usually want to avoid while working in GIT
There's another much better way to do it in GitKraken:
let's say this is your commit history
A - B - C - D
(D being the latest commit)
now you want to revert B,C&D
A
(make sure you stash any open changes before doing that)D
(yes, resetting to a later commit is actually possible)now your history should look like this
A - B - C - D - A'
(A'
having the same content as A
)
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