git 关联本地和远程分支 git branch --set-upstream-to=mirror/远程分支名 本地分支名 # 如果远程没有 master 分支,执行以下。。 git push --set-upstream origin master