1.登录码云:https://git.oschina.net/ 并新建git库,并复制git库地址,如:https://git.oschina.net/xmwj/sparkApp.git
2. 把idea上待提交的项目设置成git工程
3.在本地安装git,定位到idea的工程根目录下,如
cd /home/tools/java-workspace/workspace1/sparkAPP
在终端输入以下命令:
1)git config --global user.name "liudy"
2)git config --global user.email "ldy282@163.com"
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://git.oschina.net/xmwj/sparkApp.git
然后就可以使用idea提交项目到码云了