git 恢復誤刪除分支

直接上操做步驟了;git

  1. git log -g 查看提交記錄,找到你要的那個分支的commit id ....就是一長串的那個東西,如圖bash

2.git branch recover_branch_notify1.0 d3831abc7718f7526673f503c1f0be3a6778640.net

其中notify1.0是自定義的,recover_branch_是必需要的,然就能夠用git branch 查看了,就生成了recover_branch_notify1.0分支了。恢復了。OK。blog

 

破費....是否是....而後有一個問題,就是個人git bash打開不能用了...是這樣的,求大神太一手...ip

參考文章:http://blog.csdn.net/fdipzone/article/details/50616386 get

相關文章
相關標籤/搜索