1. 登录GitLab,查看是否有目录下的权限创建项目
如果无权限的话,也可以选择在自己的账户下创建个人的项目
2. 创建new project
3. 创建完成后,为空文件夹
4. 在本地盘空白处输入git clone命令,初始化仓库
成功后,会创建一个包含.git文件的空文件夹,然后将要上传的各模块文件夹复制在.git同级目录,用IDEA打开。
将需要分模块上传的文件依次上传
先添加到暂存区,再提交,提交时书写格式为
或者
然后push到master
5. 将标准代码上传到master后,再拉取master代码,切换分支,修改pom版本号,开始开发。
6. 如需要修改项目,在setting中设置