1. git log
    2. .....
    3. input q can quit this status
    4. git add .
    5. git commit -m"change1"
    6. git commit --amend
    7. come to vim edit
    8. can press a ,i or o to edit
    9. //if you want to save and quit can press ESC and input :wq
    10. //if you want to quit but not save this edit can press ESC and input :q!
    11. to cancel add . and commit by use follow code
    12. git reset --soft HEAD^ only cancel commit
    13. git status can show add file
    14. git reset --mixed HEAD^ cancel commit and add ,but code you have change is reserve
    15. ***!!
    16. git reset --hard HEAD^ cancel commit and add ,attention,code you have change
    17. also cancel so is come to last time you commit.
    18. git reset --hard HEAD~3 Fall back to before the last three commuits
    19. git push origin HEAD --force force to origin brnach