How to Undo Mistakes with Git
Uh oh. You just accidentally merged your files to the master branch when you meant to merge them to the staging branch. Now what? Almost everyone who uses Git makes a mistake at some point. Whether it's merging the wrong files, deleting the wrong bra...
freeCodeCamp.org