GitLab 创建远程库
IDEA 集成 GitLab
1)安装 GitLab 插件
2)设置 GitLab 插件
3)push 本地代码到 GitLab 远程库
自定义远程连接
注意:gitlab 网页上复制过来的连接是:http://gitlab.example.com/root/git-test.git
,需要手动修改为:http://gitlab-server/root/git-test.git
选择 gitlab 远程连接,进行 push
首次向连接 gitlab,需要登录帐号和密码,用 root 帐号和我们修改的密码登录即可。
代码 Push 成功。
只要 GitLab 的远程库连接定义好以后,对 GitLab 远程库进行 pull 和 clone 的操作和 Github 和码云一致,此处不再赘述。