解决方法: 按照提示在IDEA的Terminal中输入git branch --set-upstream-to origin即可。 来源:oschina链接:https://my.oschina.net/u/4352934/blog/3493964 标签 git IntelliJ IDEA