If you accidentally commit to master branch: ```git reset HEAD^```
If you accidentally commit to master branch:
git reset HEAD^