aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/doc/installation/from-binary.zh-cn.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/doc/installation/from-binary.zh-cn.md')
-rw-r--r--docs/content/doc/installation/from-binary.zh-cn.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/content/doc/installation/from-binary.zh-cn.md b/docs/content/doc/installation/from-binary.zh-cn.md
index abe799dc94..248f03d63f 100644
--- a/docs/content/doc/installation/from-binary.zh-cn.md
+++ b/docs/content/doc/installation/from-binary.zh-cn.md
@@ -74,6 +74,7 @@ git --version
创建用户(推荐使用名称 `git`)
```sh
+# On Ubuntu/Debian:
adduser \
--system \
--shell /bin/bash \
@@ -82,6 +83,17 @@ adduser \
--disabled-password \
--home /home/git \
git
+
+# On Fedora/RHEL/CentOS:
+groupadd --system git
+adduser \
+ --system \
+ --shell /bin/bash \
+ --comment 'Git Version Control' \
+ --gid git \
+ --home-dir /home/git \
+ --create-home \
+ git
```
### 创建工作路径