How do you discard local commits?
Answer
git reset HEAD~1 for removing last commit
If you would like to also discard the changes you `git reset --hard``
git reset HEAD~1 for removing last commit
If you would like to also discard the changes you `git reset --hard``