I'm trying to add a remote server from my git bash prompt with something like:
git remote add origin ssh://myserver.pair.com/usr/home/myname/myrepo.git
fatal: Not a git repository (or any of the parent directories): .git
I seem to have ssh set up ok because this...
ssh myserver.pair.com
... logs in just fine without prompting me for my password.
What appears to happen with the remote add is that it doesn't even try to contact the server. It returns with an error instantly, and it doesn't appear to matter what I put for a server name:
git remote add origin ssh://blahblahblah/usr/home/myname/myrepo.git
fatal: Not a git repository (or any of the parent directories): .git
Have I misconfigured git somehow?
Technical details: Windows Vista, MsysGit v1.6.4, SSH configured with the file C:\Program Files\Git\etc\ssh\ssh_config