按照 5.1 说明安装 gitlab
https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/installation.md
当我运行命令来测试安装时,出现错误“Git configured for user? ... no”
root@gitlab:/home/git/gitlab# sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
Checking Environment ...
Git configured for git user? ... no
Try fixing it:
sudo -u git -H git config --global user.name "GitLab"
sudo -u git -H git config --global user.email "[email protected]"
For more information see:
doc/install/installation.md in section "GitLab"
Please fix the error above and rerun the checks.
Has python2? ... yes
python2 is supported version? ... yes
说明中没有任何一点说要为 git 用户设置 user.name 和 user.email。我可以安全地忽略此警告,还是应该偏离说明进行设置?
是的,您应该配置名称和电子邮件。
这将合并到未来版本的文档中。
https://github.com/gitlabhq/gitlabhq/pull/3894