Subversion with a custom port on OS X

Setting up subversion to checkout and over a custom port number is one of those tasks that I do once every six months, and immediately forget, then I waste time a’Googling to find it again.

Open up subversion’s config file

mate /Users/myuser/.subversion/config

Then find the section marked [tunnels], and add a line naming your custom port (replacing ‘1234′ with the port number)

myproject = ssh -p 1234

Then when you checkout your project you replace svn+ssh with svn+myproject

svn checkout svn+myproject://myuser@mydomain.com/home/myuser/data/svn/myproject/trunk .

That’s it!

This entry was posted in svn. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

2 Comments

  1. Posted February 1, 2008 at 3:18 pm | Permalink

    Short, clear and very useful! Thank you!

  2. Thiago
    Posted March 11, 2008 at 9:38 am | Permalink

    Helped a lot, thanks!

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word