git 使用

114 阅读1分钟

误删分支恢复

# 全局查找日志,找到误删的分支最新一条提交记录
git log -g
# 恢复分支
git branch [recover-branch-name] [logid]