Git not working on Namecheap [SOLVED]

git not working on your NameCheap shared hosting?

the program ‘git’ is installed here: ‘/usr/local/cpanel/3rdparty/bin/git’

create a .bash_profile and add the line

export PATH=$PATH:/usr/local/cpanel/3rdparty/bin

to it and save it. It will now work from interactive CLI.

If you are trying to remote in you will need to pass parameters, something like this

git push --receive-pack=/usr/local/cpanel/3rdparty/bin/git-receive-pack ssh://[email protected]:21098/home/username/public_html/path_to_git_project branch

, but this never worked for me because of the port number. There are workarounds however that depend on your platform. On windows use a named putty session, *nix a similar kind of .ssh/config file, both with the 21098 port number stored so that it does not have to be entered in the CLI.

Categories:

2 thoughts on “Git not working on Namecheap [SOLVED]

Comments are closed.