gitlab的基本使用
gitlab基本使用学习视频URL:
https://www.bilibili.com/video/BV16T4y1g7jM?from=search&seid=5562714502868033834
1.添加本地项目到gitlab
2.将项目设置为私密项目后,给其他开发人员开通权限
3.在gitlab创建完分支后,需要在本地idea进行拉取
4.在idea端gitlab合并分支操作(master,uat,devlop)
注:将Remote模块合并到Local模块,合并成功后在Push到远端
5.在线合并分支操作
分支合并后,删除对应的源分支
如果在代码合并时有指定“ Assignee ”(受让人),则有受让人做对应的代码审查或合并或关闭合并
6.设置受保护的分支。只有主程序员拥有合并master的权限
合并master的权限设置
7.GitLab 项目创建后地址由Localhost改为实际IP的方法
vim /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml
gitlab:
## Web server settings (note: host is the FQDN, do not include http://)
host: localhost >> 这里改为主机的IP即可
port: 80
https: false
# Uncommment this line below if your ssh host is different from HTTP/HTTPS one
# (you'd obviously need to replace ssh.host_example.com with your own host).
# Otherwise, ssh host will be set to the `host:` value above
重启GitLab
gitlab-ctl restart