2015-08-21 38 views
4

在一個git項目中,我在分支中做了一些重構,現在這個分支應該是一個新項目。 我把這個項目從github移到bitbucket。現在我想刪除舊的主設備,並使重構分支成爲新的主設備。如何從bitbucket中刪除git遠程主機?

我試圖刪除主:

$ git branch -D master 
Deleted branch master (was a947288). 
$ git push origin :master 
remote: error: refusing to delete the current branch: refs/heads/master 
! [remote rejected] master (deletion of the current branch prohibited) 

在到位桶前端我無法刪除主都不是。那麼我怎麼能實現這一目標呢?或者,我是否必須創建一個新項目並將重構分支推送到其主控中?

+0

使用SourceTree。 – Jude

+0

@Jude Learning GUI中的Git是災難(個人意見)的祕訣。 – Jubobs

回答