【Git】+IDEA+本地新建项目上传到Github or Gitlab

https://jingyan.baidu.com/article/9c69d48fe68cce13c9024e9c.html
修改远程仓库的地址:https://blog.csdn.net/u011136197/article/details/79429000/

 

备注:

如果push被拒绝  在自己项目所在的根目录,右键选择GIT BASH Here

 

 依次输入以下命令后 然后在IDEA中push就可以了

git pull
git pull origin master
git pull origin master --allow-unrelated-histories
posted @ 2019-03-30 13:16  淡怀  阅读(215)  评论(0编辑  收藏  举报