CentOS git:未找到非root用户的命令

jtw3ybtb  于 2022-11-07  发布在  Git
关注(0)|答案(1)|浏览(142)

操作系统:分版本-7 -9.2009.1.el7分版本.x86_64
我已经通过命令安装了git 2.13.0:

rpm -U http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm     && yum install -y git

在根目录中:


# git --version

git version 2.13.0

在使用者(非root)中:

$ git --version
bash: git: command not found

如何为用户(非root)安装git?

b1uwtaje

b1uwtaje1#

如果您无权访问以root用户身份安装的任何应用程序,而您的用户具有sudo权限,请尝试以下操作


# sudo git --version

系统可能会要求您输入口令,以便以更高权限在sudo下执行命令

相关问题