- Download patch
git clone https://gitlab.com/xhang/gitlab.git
There may be a -bash: git: command not found
problem; the
solution executes the command: yum install -y git
2. Enter gitlab: cd gitlab
3. Check the version: git branch -a
4. Generate a patch corresponding to your version: mine is 10.0.0 so it is:
git diff remotes/origin/10-0-stable remotes/origin/10-0-stable-zh > /tmp/10.0.0-zh.diff
5. Stop the service: gitlab-ctl stop
6. Patch: patch -d /opt/gitlab/embedded/service/gitlab-rails -p1 < /tmp/10.0.0-zh.diff
7. Configuration and restart:
gitlab-ctl reconfigure
gitlab-ctl start