Gitlab
什么是Gitlab
私有代码仓库
精细化权限配置,让系统更安全
控制用户/用户组是否可以提交到主分支 (PR Push Request)
它使用Ruby语言写成。后来,一些部分用Go语言重写

GitLab 用户在组中有五种权限:
Guest:可以创建问题、发表评论、不能读写版本库(访客)
Reporter:可以克隆代码,不能提交(测试人员)
Deveoper:可以克隆代码、开发、提交、上传(开发人员)
Master:可以创建项目、添加 tag、保护分支、添加项目成员、编辑项目(运维)
Owner:所有事情都可以做,包括设置项目的访问权限(老板,但老板一般都在办公室)
安装 (ubuntu)
### 强烈建议docker 直接拉去挂载 手动太麻烦了。
sudo apt-get install curl openssh-server ca-certificates postfix
上传deb包 安装


组件贼多 建议配置8g以上内存
/etc/gitlab/gitlab.rb ## 编辑文件
sudo gitlab-ctl reconfigure ## 初始化
gitlab-ctl相关命令
gitlab-ctl status ## 状态
gitlab-ctl start ## 启动
gitlab-ctl stop
gitlab-ctl restart
gitlab-ctl tail ## 日志
gitlab-ctl reconfigure ## 重新加载配置文件

重置密码
gitlab-rake "gitlab:password:reset"
