一个分支的upstream,其实就是与远程分支做关联,告诉git,默认此分支为推送及拉取的远程分支的信息。 ## upstream的设置 基本设置 1 $ git branch --set-upstream-to=origin/dev 或 1 git branch -u origin/dev