index
remote repository
git reset --hard commitID/HEAD@{N}
working copy
commit
更新/提交
add
分支2
git reflog
local repository
checkout
push
查看操作历史
pull
git reset --mixed commitID/HEAD@{N}
分支1
git log
git reset --soft commitID/HEAD@{N}
回滚pull、commit、add
fetch