Get commit detail
git log
Reset head (last commit) form local repository
1. git reset --hard HEAD~12.git reset --hard HEAD^
Push to remote repository for remove last commit
1. git push -f <remote> <branch>2. git push -f
Reset stage file
1. git reset --hard HEAD <path/filename>