重建master分支

 

master的代码被我搞坏了 
git merge temp 
也弄不回来代码
我想把master的代码完全替换成temp的

 

在temp branch上
git branch -D master
git checkout -b master
git branch -d temp

posted @ 2016-06-21 14:49  Jenkin.K  阅读(499)  评论(0)    收藏  举报