添加git帐号并允许sudo 1.创建账号: useradd --comment 'GitLab' git 1 useradd --comment 'GitLab' git 2.给账号赋予sudo权限: echo "git ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers 1 echo "git ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers