Gitlab FAQ
-
无法进入 production
Root用户输入命令gitlab-rails console -e production
-
修改指定用户密码
user = User.where(name: "xx").first
user = User.where(username:"xx").first
user.password='xxxxxx'
user.password_confirmation='xxxxxx'
user.save!
quit
- 502错误
sudo gitlab-ctl restart sidekiq
sudo gitlab-ctl hup unicorn
配合SourceTree使用
教程:https://docs.gitlab.com/ee/ssh/
ssh-keygen -t ed25519 -C "aa@qq.com"
# 以下通过命令行复制文件内容到粘贴板
mac_os:
pbcopy < ~/.ssh/id_ed25519.pub
Linux:
xclip -sel clip < ~/.ssh/id_ed25519.pub
Git Bash on Windows:
cat ~/.ssh/id_ed25519.pub | clip
# 添加公钥到Gitlal key中
如:
http://192.168.99.2:8099/-/profile/keys/47
# 测试git链接-之后sourcetree就可以正常拉取代码了。
ssh -T git@192.168.80.5