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.
When i run
gitolite setup -pk alice.pub
command i got "bash: gitolite: command not found" error message. I don't know what is the problem.. Any one please help me.
On debian, there is no /usr/bin/gitolite
Here installing gitolite3 helped:
As I also faced the same problem, I found the solution(s) as below.
First way is ...,
Open your terminal and key in below code
It is because the value of
$PATH
variable is point to incorrected path.So I just modify this variable.
To be more detail click here.
Second way is ...,
Edit
.bashrc
file going to the end and insert below line.To be more detail click here.
This step comes after the Gitolite installation, which supposes you have chosen one of three possibilities:
gitolite
command.$PATH
.So make sure gitolite is in your
PATH
, and that command will work.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
"Note that for
gitolite setup
to properly work, you might want to setGITOLITE_HTTP_HOME
to an empty string first.