我有两个不同版本的git。在1.6.2版本中,git push没有该-u选项。它仅出现在1.7.x版本中。
在文档中,-u与变量相关
branch.<name>.merge
在中git config。此变量描述如下:
Defines, together with branch.<name>.remote, the upstream branch
for the given branch. It tells git fetch/git pull which branch to merge.
什么是上游分支?
1
另请参见stackoverflow.com/questions/2739376/...
—
VonC