在Mac版的intelliJ中上传项目到GitHub

vcs-->Git-->add 还是remote来着,先和github关联起来。一搜一大把

在intelliJ自带的terminal当中。。

先要建立本地的git repository

git init

git add .   //.代表全部

git commit 提交到本地

如果push不成功

则git pull origin master --allow-unrelated-histories

git push origin master。//push到远程

原文地址:https://www.cnblogs.com/vector11248/p/8641122.html