1. 查看操作记录 git reflog show --date=iso 2. 找到对应分支最后一个提交记录,复制出第一个7位的字符串 3. 恢复分支 git checkout -b feat-honey d716ae7 【注意】feat-honey为分支名 4. 重命名本地分支名 git branch -m old_branch_name new_branch_name