1

I have successfully setup gitosis on my server thanks to this helpful howto.

Versions:
Server: CentOS 5
Desktop: Windows 7
Git (on Desktop): 1.6.5.1.1367.gcd48
Client: TortoiseGit 1.3.2.0 (with msysgit 1.6.1)

How can I clone a Git repository from my server when my SSH port is non the default (22)?

I believe that the URL ssh://[email protected]:3031/gitosis-admin.git works, but I get:

'/gitosis-admin.git' does not appear to be a git repository

Thank you.

1
  • @Chris Done. Haven't been here for a while. Also, I had only 4 questions ;)
    – pek
    Jul 14, 2011 at 20:55

1 Answer 1

1

How about this:

cd ~/.ssh
echo "Host MYSERVER.com" > config
echo "Port 3031" >> config
cd
git clone [email protected]:gitosis-admin.git

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .