1.首先在码云创建项目,不需要添加.gitignore和LICENSE,复制项目git地址。
2.将idea项目文件加入本地git代码库
3.在项目本地文件夹打开Git Bash Here
4.git remote add origin xxx.git
5.git pull origin master
6.git pull origin master --allow-unrelated-histories ,在打开的文件内添加提交注释.
7.idea git add->commit->push,添加第一步复制的git地址,push。
转载于:https://my.oschina.net/gentlelions/blog/2876028