lchl0388 发表于 2018-9-19 09:58:58

gitlab8的安装

# useradd test  
# su test
  
# mkdir testprojiect
  
# cd testprojiect/
  
# git init
  
# echo "What a fucking Hello World" > readme.txt
  
# git add .
  
# git commit -m 'first commit'
  
# git remote add origin git@git.example.com:root/testproject.git
  
# git push -u origin master
  
如果报错
  
/opt/git/gitlab-shell/lib/gitlab_shell.rb:135:in `exec': No such file or directory - git-upload-pack (Errno::ENOENT)
  from /opt/git/gitlab-shell/lib/gitlab_shell.rb:135:in `exec_cmd'
  from /opt/git/gitlab-shell/lib/gitlab_shell.rb:118:in `process_cmd'
  from /opt/git/gitlab-shell/lib/gitlab_shell.rb:31:in `exec'
  from /opt/git/gitlab-shell/bin/gitlab-shell:20:in `'
  
fatal: Could not read from remote repository.
  

  
ln -s /usr/local/ruby/bin/ruby /usr/bin/ruby
  
ln -s /opt/soft/git/bin/git-upload-pack/usr/bin/git-upload-pack
  
ln -s /opt/soft/git/bin/git-receive-pack/usr/bin/git-receive-pack


页: [1]
查看完整版本: gitlab8的安装