0

In mysysgit when I do ssh user@machine.com echo \$PATH I am missing a few items in my PATH in order to work with git. Specifically git-upload-pack. I saw this answer (https://stackoverflow.com/a/225315/333890) which confirmed my problem, but I have been unable to figure out how to edit the PATH such that ssh user@machine.com echo \$PATH reflects the correct path to my missing commands.

So, the question, how do I edit the PATH variable for my remote connections?

I have tried created a .bashrc in my $HOME of my git-bash and I've tried looking around in various other places, but can't seem to find anything that works.

Thanks!

Community
  • 1
  • 1
Adam
  • 3,014
  • 5
  • 33
  • 59

1 Answers1

1

Make sure you create your .bashrc in your remote system and not on your current local machine.

You can add something like this on it:

PATH=/path/to/git/bin/dir:$PATH
export PATH # optional

Try placing it in .profile as well if it doesn't work with .bashrc.

konsolebox
  • 72,135
  • 12
  • 99
  • 105