解决办法: 按照提示在项目目录文件夹下输入git branch --set-upstream-to origin即可;还不行的话输入 git branch --set-upstream-to origin/master 相关文章: