2012-02-06 169 views
0

我注意到當使用git-p4 submit時,無論我在git上使用什麼分支,它總是將我的代碼發送到p4中我最初克隆它的地方。當我在master分支上時,這是我期望的行爲,但是,我想將其他本地分支與其他遠程p4分支相關聯。也就是說,我想從「git」到「p4」「跟蹤」或「發佈」除master之外的其他分支。那可能嗎?git-p4在主分支之外提交?

回答

1

是的,雖然它需要一些設置。看看detect-branches選項。您需要爲每個Perforce分支設置一個Perforce分支規範。

+1

通過一些更詳細的步驟在Perforce論壇上啓動一個主題:http://forums.perforce.com/index.php?/topic/1395-git-p4-and-multiple-branches/ – 2012-02-06 16:56:57

+0

謝謝我會看看進去! – 2012-02-14 05:44:21

+1

執行命令'git-p4 clone // depot/Jam @ all --detect-branches'後,出現如下錯誤:「Could not detect main branch。no checkout/master branch created。」有任何想法嗎? – 2012-04-08 21:10:20

相關問題