# find / -name gitlab.yml
/opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml
/var/opt/gitlab/gitlab-rails/etc/gitlab.yml
# find / -name gitlab.rb
/etc/gitlab/gitlab.rb
1.修改 gitlab.yml(/opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml)文件中的host地址
2.修改 gitlab.rb(/etc/gitlab/gitlab.rb)文件中的external_url
3.客户端 git remote set-url origin <新的git地址>
REFER:http://blog.csdn.net/allenwdj/article/details/50432459
时间: 2024-11-06 03:44:18