Git 与代码托管git reflog本页总览git reflogFAQ 恢复本地已删除分支 # 查看所有操作记录,包括被删分支之前的 commitgit reflog# 找到分支最后一次的 commit hash,例如:# abc1234 HEAD@{2}: commit: fix bug xxx# 用这个 hash 重建分支git branch <分支名> abc1234# 或者直接切出来git checkout -b <分支名> abc1234