bash:gitolite:找不到命令 [英] bash: gitolite: command not found
问题描述
我正在尝试使用Gitolite在Gitlab中建立一个新分支.我完成了安装步骤.当我遇到设置硬石膏"一节时,我遇到了麻烦.我遵循了这个链接.
I am trying to make a new branch in Gitlab by using Gitolite. I complete the installation steps. when i come across "setting up gitolite" section i have a trouble. I followed this link.
当我跑步
gitolite setup -pk alice.pub
命令我收到"bash:gitolite:找不到命令"的错误消息.我不知道这是什么问题.任何人都可以帮助我.
command i got "bash: gitolite: command not found" error message. I don't know what is the problem.. Any one please help me.
推荐答案
此步骤是在 Gitolite之后进行的安装,它假定您已选择以下三种可能性之一:
This step comes after the Gitolite installation, which supposes you have chosen one of three possibilities:
- 将源保存在任何地方,并使用完整路径来运行
gitolite
命令. - 将源代码保存在任何地方,并将gitolite程序符号链接到
$PATH
上的某个目录. - 将源复制到某个地方,然后使用该路径运行gitolite命令.
- Keep the sources anywhere and use the full path to run the
gitolite
command. - Keep the sources anywhere and symlink just the gitolite program to some directory on your
$PATH
. - Copy the sources somewhere and use that path to run the gitolite command.
因此,请确保您的PATH
中有gitolite,并且该命令将起作用.
So make sure gitolite is in your PATH
, and that command will work.
我更喜欢在本地安装gitolite(与/usr/local
相反,在本地目录中需要root特权.).
有关说明,请参见" install_or_update_gitolite.sh
"
I prefer a local installation of gitolite (in a local directory, as opposed to /usr/local
, which requires root privileges.).
See, for illustration, "install_or_update_gitolite.sh
"
"${github}/install" -to "${gtl}/bin" # Note: "${gtl}/bin" is in my $PATH
GITOLITE_HTTP_HOME= gitolite setup -pk "${H}/.ssh/gitoliteadm.pub"
请注意,为了使gitolite setup
正常工作,您可能需要先将GITOLITE_HTTP_HOME
设置为空字符串.
Note that for gitolite setup
to properly work, you might want to set GITOLITE_HTTP_HOME
to an empty string first.
这篇关于bash:gitolite:找不到命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!