如何撤销git commit --amend

2020-10-18  本文已影响0人  louyang
git log --reflog

找到要恢复到的commit,执行:

git reset <commit hash> --hard
上一篇 下一篇

猜你喜欢

热点阅读