重置分支到此次提交,强变基
$ git pull --rebase --autostash
回退无效提交
$ git reset --soft head^
$ git status
$ git stash
$ git pull
$ git reset --soft head^
$ git reset --soft head^
$ git stash pop
$ git push origin HEAD:refs/for/base-009f565ca2f681af2237c6c909f22127bacc3580
gitdir=$(git rev-parse --git-dir); scp -O -p -P 29418 pei.zhang@gerrit.internal.avatr.com:hooks/commit-msg ${gitdir}/hooks/
git commit --amend
amend 纠正