Bash: gitolite: command not found

I am trying to create a new branch in Gitlab using Gitolite. I am completing the installation steps. when I come across "tuning the guitarolite", I have a problem. I followed this link.

When i run

gitolite setup -pk alice.pub 

the command received the message "bash: gitolite: command not found". I do not know what's the problem. Anyone please help me.

+3
source share
3 answers

This step occurs after installing Gitolite , which assumes that you have chosen one of three options:

  • Store sources anywhere and use the full path to run the gitolite .
  • Keep the sources anywhere and symbolically link only the gitolite program to any directory on your $PATH .
  • Copy the sources somewhere and use this path to run the gitolite command.

So, make sure the guitarolite is in your PATH and this command will work.

I prefer the local installation of githolite (in the local directory, as opposed to /usr/local , which requires root privileges.).
See, for example, " 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" 

Please note that for gitolite setup to work gitolite setup you can first set GITOLITE_HTTP_HOME to an empty line.

+1
source

Since I also had the same problem, I found the solution (s) as shown below.

The first way is ...,

Open a terminal and enter the code below

 $ PATH=$PATH:~/bin 

This is because the value of the $PATH variable points to the wrong path.
So I just change this variable.

Click here for more details.

The second way is ...,

Edit the .bashrc file to the end and insert the line below.

 PATH=/home/git/bin:$PATH 

Click here for more details.

0
source

There is no / usr / bin / gitolite on debian

 Linux debian-srv 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64 GNU/Linux ls: cannot access /home/gitolite/bin: No such file or directory ls: cannot access /usr/bin/gito*: No such file or directory 

Here gitolite3 installation helped:

 apt-get install gitolite3 root@debian-srv :# which gitolite /usr/bin/gitolite 
0
source

Source: https://habr.com/ru/post/1483007/


All Articles