1.安装git
首先需要安装git,可以参考我之前写的这篇文章进行安装https://blog.csdn.net/weixin_42765596/article/details/102716395
2.删除系统可能已存在的git用户
[root@localhost ~]#userdel -r -f git
3.创建一个git用户
[root@localhost ~]#adduser git
4.为用户名为git的用户设置密码
[root@localhost ~]# passwd git
Changing password for user git.
New password:
BAD PASSWORD: it is too short