2013-05-01 67 views
0

現在我有這個git的結帳分支 - 現在有重複

[[email protected] pmtsystem]# git branch -a 
    master 
    remotes/origin/upgrade-to-mpdf56 
* rush 
    remotes/origin/HEAD -> origin/master 
    remotes/origin/atc 
    remotes/origin/master 
    remotes/origin/pmt 
    remotes/origin/rush 
    remotes/origin/upgrade-to-mpdf56 

當時的想法是籤遙控器/產地/升級到mpdf56但這又可怕的錯誤。它可以修復嗎?

+0

這是前一個問題的延續嗎?請提供一些背景。 – chepner 2013-05-01 16:57:02

+0

怎麼有兩個'遙控器/原點/升級到mpdf56'?困惑。 – Jokester 2013-05-01 17:21:07

回答

1

正確的方式來獲得一個遠程回購的副本會是這樣的:

git clone -b upgrade-to-mpdf56 [email protected]/path 

把你的本地cpoy該分支與合併您的diff做:

git checkout -m upgrade-to-mpdf56 

使用Schleis建議刪除當地的邪惡分支。

3

你應該可以做git branch -d remotes/origin/upgrade-to-mpdf56因爲你不能以這種方式刪除遠程分支。

您也可以編輯.git/config文件並刪除分支的條目。