First checkout a new branch. So that we can keep all the changes we made. Then back to master branch What should we do is reset the head to '9a7f06b': git reset --hard 9a7f06b
First checkout a new branch. So that we can keep all the changes we made. Then back to master branch What should we do is reset the head to '9a7f06b': git reset --hard 9a7f06b 1.