git clone http://xx.xx.xx.xx:8090/root/www.baidu.com
Cloning into 'www.baidu.com'...
Username for 'http://xx.xx.xx.xx:8090': root
Password for 'http://root@xx.xx.xx.xx:8090':
error: RPC failed; result=22, HTTP code = 404
fatal: The remote end hung up unexpectedly
sudo emacs /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml
1. 设置gitlab的object size 大小
sudo editor /home/git/gitlab/config/gitlab.yml
将"max_size:20000000"改成需要的bytes.
2. 设置nginx 的client_max_body_size
sudo editor /etc/nginx/sites-enabled/gitlab-ssl
设置client_max_body_size为:
client_max_body_size 1024M;
3.设置postBuffer
单独项目设置:
git config http.postBuffer 1024000000
全局设置:
git config --global http.postBuffer 1024000000
4. 重启gitlab服务
gitlab-ctl reconfigure
gitlab-ctl restart
git设置一下网速
git config --global http.lowSpeedLimit 0
==============================================
安装gitlab:
1. 下载安装包
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm
2. yum安装依赖
sudo yum install gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm
3. 改配置文件
sudo emacs /etc/gitlab/gitlab.rb
4.启动
gitlab-ctl reconfigure
gitlab-ctl restart
5. 用浏览器访问 /etc/gitlab/gitlab.rb中设置的external_url即可