I\'ve accidentally run the command against the wrong branch in my repository - is there a way to undo this change?
How about reverting the revert?
View git log and get the hash tag of the bad revert:
git log -5
Then do reverse the revert itself:
git revert