Git

How to erase the head commit
The following  is the target commit SHA value where you want your repository revert to.

1. git reset --hard 

2. git push origin HEAD --force