-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
code-school-git-real
https://github.com/xgqfrms/git
https://git.xgqfrms.xyz/git-add/git_real_slides.pdf
git reset
# 软重置 commit
$ git reset --soft HEAD^
# 硬重置 commit
$ git reset --hard HEAD^
# HEAD^^ === HEAD~2
$ git reset --hard HEAD^^
# 等价于
$ git reset --hard HEAD~2