ArvinderKang.com header image 2

Git remote pushing

July 19th, 2008 by { Arvinder Kang } · No Comments · Programming

For the last half an hour I have been playing with Git. Project I’m working on my laptop is version tracked by git. However what is the fun of using version control without a remote server.

As soon as I pushed my project directory to my remote OS X Tiger server, I got the following error.

    bash: line 1: git-receive-pack: command not found
    fatal: The remote end hung up unexpectedly

Google comes to rescue.

    Many installations of sshd do not invoke your shell as the login shell when you directly run programs; what this means is that if your login shell is bash, only .bashrc is read and not .bash_profile. As a workaround, make sure .bashrc sets up $PATH so that you can run git-receive-pack program.

Running following two lines solved the problem.

echo export PATH=/usr/local/bin:$PATH >> ~/.bashrc
source ~/.bashrc

Tags: ··

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment