2016-01-10 26 views

回答

1

我搞砸了,併合並一個分支到主

按照這些步驟,「恢復」你搞砸了主

# checkout dummy branch - so you will be able to delete your local master 
git checkout -b dummy1 

# delete the "bad" branch (locally) 
git branch -D master 

# get updates from the server (in case there are changes) 
fir fetch --all --prune 

#checkout the original master 
git checkout master 

# remove the dummy branch 
git branch -D dummy1 

你都可以走了。您的主服務器現在與遠程服務器上的分支服務器相同。

+0

TY,即工作! – gemantzu

+0

很酷。樂意效勞 – CodeWizard