cxin 发表于 2018-1-10 19:15:23

Gitlab的使用总结

Gitlab的使用总结
  TIME: 20150408

1.介绍
  都用过Github,但是它有一个缺点是必须在外网使用,Gitlab就可以让你安装到Ubuntu的局域网服务器上。介绍就点到这里。

2.安装
  2013年的时候安装Gitlab还要自行配置数据库、服务器等,现在已经可以做到直接使用一个deb包安装了。具体的安装教程在Create, review and deploy code together。
  

$ sudo dpkg -i gitlab_7.7.2-omnibus.5.4.2.ci-1_amd64.deb  
Selecting previously unselected package gitlab.
  
(正在读取数据库 ... 系统当前共安装有 255717 个文件和目录。)
  
正在解压缩 gitlab (从 gitlab_7.7.2-omnibus.5.4.2.ci-1_amd64.deb) ...
  
正在设置 gitlab (7.7.2-omnibus.5.4.2.ci-1) ...
  
Thank you for installing GitLab!
  
Configure and start GitLab by running the following command:
  

  
sudo gitlab-ctl reconfiguregit clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6
  

  
GitLab should be reachable at http://xxx
  
Otherwise configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
  
And running reconfigure again.
  

  
$ sudo gitlab-ctl reconfigure
  
.....
  
$
  


[*]1
[*]2
[*]3
[*]4
[*]5
[*]6
[*]7
[*]8
[*]9
[*]10
[*]11
[*]12
[*]13
[*]14
[*]15
[*]16
[*]17
  https://downloads-packages.s3.amazonaws.com/ubuntu-12.04/gitlab_7.7.2-omnibus.5.4.2.ci-1_amd64.deb
  安装成功,没有其它问题,下一步考虑如何批量建立仓库。
  安装后就可以像使用Github一样使用本机上的Gitlab了,真是让git服务器走进大众家庭了。大家不需要为各个没有听过的点上再费力。

3.sudo gitlab-ctl reconfigure配置
  有些默认配置并不一定适合你,所以要进行自定义配置,当然这个配置也仅仅是源码存放的路径了,等等。

4.使用Gitlab管理Android源码
  这个是一个高级话题了,换句话说就是如何在Gitlab批量添加仓库。有这个需求的人目前并不是很多,但是确实是一个需求。比如这里就有一个人一样的Import the entire android repositories to GitLab。
页: [1]
查看完整版本: Gitlab的使用总结