0

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)!

elewint
  • 13
  • 3

1 Answers1

5

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.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335
  • Thanks for answering. Do you know how I can install git on the server? – elewint Sep 01 '14 at 16:22
  • The same way you install more-or-less any other program on whatever operating system the server is running. – Quentin Sep 01 '14 at 16:51
  • Ok.. I found my way around my original problem by just avoiding it altogether and it's now doing what I want. Thanks again for answering. – elewint Sep 01 '14 at 21:08
  • I am having the same issue but in my case i have logged in through ssh to my own mac (working on some module for my project).. my mac have GIT installed as am using the GIT properly since long time but throwing error through SSH. – Ritesh Oct 01 '16 at 06:31