2012-12-11 106 views
3

從git服務器的局域網內的任何存儲庫中取出任何分支都可以工作。
但是,在任何遠程計算機上(與git服務器不在同一局域網中),從任何存儲庫中提取主服務器都有效,但正在拉任何其他分支掛起git pull僅適用於master分支

環境:
- Git的服務器是在Ubuntu
gitorious跑 - 我從窗戶使用msysgit和命令行或拉tortoisegit
- 使用的URL的形式爲:ssh://[email protected][my.domain]/[proj]/[repo.git]

我知道gitorious does not support branch specific permissions。此外,在局域網內的所有分支機構工作必須指出一些事實......它可能是什麼?!

更新:
我懷疑我試圖拉不存在的分支,所以我試圖推動它。這裏的結果:

git.exe push --progress "origin" other_branch 

To ssh://[email protected]/proj/repo.git 
! [rejected]  other_branch -> other_branch (non-fast-forward) 
error: failed to push some refs to 'ssh://[email protected]/proj/repo.git' 
hint: Updates were rejected because the tip of your current branch is behind 
hint: its remote counterpart. Merge the remote changes (e.g. 'git pull') 
hint: before pushing again. 
hint: See the 'Note about fast-forwards' in 'git push --help' for details. 

有趣,不掛...

+0

只是爲了消除明顯(我的意思並不是要居高臨下),做其他分支機構的Git服務器上存在? –

+0

@ap :)是的,請參閱問題更新 – Jonathan

+0

'git fetch origin'的輸出是什麼? – asm

回答

0

首先檢查是否分支在gitorious WebView中存在,或者在你的服務器的文件系統。

,如果它存在,嘗試 $git pull --rebase origin other_branch然後 $git push origin other_branch

相關問題