1、gitlab 上创建远程仓库项目
2、idea创建本地仓库。
选择要提交的项目 --> "OK"
3、创建版本控制,忽略过滤文件
勾选"Example user template" --> "Generate"
4、复制远程 https 仓库地址。
5、关联本地项目到远程仓库
# git remote add origin https://xxxxxx/big-data/igg-aggregate.git
6、使用 idea commit 功能提交代码
Add to VCS --> Commit -- commit
7、push 代码到远程仓库
# git push -u origin master
【一起学习】