I\'ve accidentally run the command against the wrong branch in my repository - is there a way to undo this change?
If you were prescient enough to have done this: revert --no-commit master, you can abort that with: git revert --abort per the git status advice:
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
You are currently reverting commit dcc7c46.
(all conflicts fixed: run "git revert --continue")
(use "git revert --abort" to cancel the revert operation)