Git 撤消最后一次或多次提交
撤消上一次提交:
git reset --hard HEAD^
撤消最近两次提交:
git reset --hard HEAD^^
撤消最近 n 次提交(n 替换为实际的数字):
git reset --hard HEAD~n
撤消上一次提交:
git reset --hard HEAD^
撤消最近两次提交:
git reset --hard HEAD^^
撤消最近 n 次提交(n 替换为实际的数字):
git reset --hard HEAD~n