我不知道,如果IM濫用的Git,或者如果我有一個配置問題,因此任何清晰度,將不勝感激:)的Git分支:跟蹤上游
我克隆我的github回購到機器A和B ,然後在機AI的更多信息:
git checkout -b branchA
// make edits
git add .
git commit -am "initial"
git push
然後在機器B I做
git pull
git checkout branchA
// make edits
git commit -am "edits"
git push
機器A i,那麼這樣做:
git pull
但是它說:
There is no tracking information for the current branch
,所以我必須做的:
git branch --set-upstream branchA origin/branchA
:/爲什麼我必須設置上游,當它最初它推到原點/ branchA沒有問題?
怎麼回事?謝謝
即時通訊使用msygit 1.8。在窗戶上
P.S.當我在機器B上執行pull
時,爲什麼默認跟蹤新分支branchA
? git branch
does not show it(but it does with -r
)。我可以讓所有新的遠程分支被默認跟蹤,當我pull?
是什麼在你的倉庫'混帳配置push.default'的輸出?它不會是'現在',是嗎? – jszakmeister
它不返回任何東西(在機器A上):/ –