恢复删除的本地分支 做笔记的小白 2020-05-07 132 阅读1分钟 git log -g //查看记录,找到commit id git checkout -b {branch-name} {commit-id} //重建指定commit分支 git pull origin {branch-name} --no-commit //拉取远程分支内容,与本地作对比