2016-09-28 62 views
0

或多或少,我創建了目的,這樣的場景:弧地失敗:沒有提交關於<功能分支>這是不是已經存在於目標

# We use git-flow. 
$ git flow feature start <feature> 

# update a file 
$ git commit <file> -m '<message>' 
$ git rebase -i develop 
$ git push -u origin <feature-branch> 

# Try arcanist now 
$ arc diff 

# diff was accepted 
$ git flow feature finish <feature> 

# feature branch removed, now in develop, let's push 
$ git push 

所以我現在的狀態下的分支不見了,由於本地分支不可用,我不能放棄土地。 注:git的(和gitolite)的作品就好了

$ arc land 

Exception 
Branch "<feature-branch>" does not exist in the local working copy. 

/咆哮。我沒有看到Phabricator的Maniphest我的特性分支。爲什麼不?

我能拉分支回:

$ git fetch -a 
$ git checkout <feature-branch> 

但我仍然無法登陸:

$ arc land 
Landing current branch '<feature-branch>'. 
TARGET Landing onto "<feature-branch>", selected by following tracking branches upstream to the closest remote. 
REMOTE Using remote "origin", selected by following tracking branches upstream to the closest remote. 
FETCH Fetching origin/<feature-branch>... 

Usage Exception: There are no commits on "<feature-branch>" which are not already present on the target. 

而且據我所知,我也沒有辦法,用於封閉差異。我如何恢復?

回答

1

arc close-revision <Diff-ID>應該關閉它。基本上你有兩個競爭的Git插件可以「着陸」你的變化。 git flow feature finish <feature>已經「降落」了您的更改,因此當您運行arc land時,它無法執行其「着陸」更改的主要功能。

+0

謝謝。我是phabricator的新手,我故意設置它,所以我很清楚這場比賽。但我沒有看到phabricator可以選擇關閉的選項。事實證明,還必須有一個後臺進程,因爲一切似乎都是自動進行的(比較近,更新顯示分支等)。 –

+0

我想過提及自動化流程。有關正在發生的更多信息,請訪問:https://secure.phabricator.com/book/phabricator/article/diffusion_updates/ – CEPA

相關問題