在本地的仓库种,如果想给upstream创建新分支并关联,需要执行 git push -u/--set-upstream 远程仓库名 远程分支名 转载于:https://www.cnblogs.com/codeking100/p/9695836.html