Undo last commit github
You are busy developing and committed all code to the your central github repository. But then something happened and you need undo the commit on github.
You have two options:
- Reversing a commit
- Removing the commit (reset head)
In this article I´m showing you Option 2: Removing the commit, also called resetting the head.
Resetting the head to undo the last commit on github needs to be executed locally first…