Sometimes I’ll be looking at a Git commit online, and want to put my dev environment in a world where the commit is un-applied. This can be achieved by applying it in reverse.
git show <sha> | git apply -R
Same behavior as git revert
, but without the revert commit.