1.首先查看提交的記錄
git log -g
2.查找被誤刪分支上最後提交的commit ID,跟回commit ID新建分支並將代碼複製到新分支上
git branch new_branch commit-id
通過上面簡單的兩步就可以找回被誤刪除的分支
GitHub地址:https://github.com/mingyang66/spring-parent/tree/master/doc/git
git log -g
git branch new_branch commit-id
通過上面簡單的兩步就可以找回被誤刪除的分支
GitHub地址:https://github.com/mingyang66/spring-parent/tree/master/doc/git