git 操作

不小心提交到HEAD分支 恢复方法
git reflog
9d92824 HEAD@{0}: checkout: moving from HEAD to master
e5f3b12 HEAD@{1}: commit: 修复某个bug
abcd123 HEAD@{2}: checkout: moving from master to HEAD
...
git checkout -b temp-recovery e5f3b12

posted @ 2025-12-24 17:48  程序猿Christmas  阅读(2)  评论(0)    收藏  举报