我是 git 的新手,所以问题可能很容易,git reset --hard HEAD
和 git reset --hard
有什么区别?
当您不指定该参数时,HEAD
是隐含的。
但是,您可以这样做,例如 git reset --hard HEAD^
在 HEAD 上核弹提交,即以重写历史记录的方式撤消它。