git reflog
你所有amend过的提交 git都有保存
你可以cherry-pick出所有的历史提交
当然,你可以清除掉这些ref log
git reflog expire --expire=now --all
本文介绍了如何使用 Git 的 reflog 功能来恢复已修改的提交记录,并提供了清除 reflog 的命令。通过 cherry-pick 可以选择性地应用历史提交。
git reflog
你所有amend过的提交 git都有保存
你可以cherry-pick出所有的历史提交
当然,你可以清除掉这些ref log
git reflog expire --expire=now --all
3060

被折叠的 条评论
为什么被折叠?