查看远程分支 git remote -v 增加远程分支 git remote add <name> <url> 设置远程分支 git push --set-upstream origin/public branchName 讲本地推送到远程 git push <name>