Search code examples
gitbashsshgit-clone

Why is git command not found over SSH?


I'm trying to git clone to my website over SSH through Terminal on OSX 10.9. I've definitely installed git - when I simply run "git" in a new bash window, Terminal shows me the most commonly used git commands. However when I run it while using SSH on my website, it returns "-bash: git: command not found".

Any ideas? Thanks (in advance)!


Solution

  • The point of SSH is to run a command line on a different computer.

    Installing git on your Mac will not cause it to be installed on the server hosting your website. If you want to use it on that computer, then you'll need to install it there too.