NetManiac

Witold Rugowski on web20 wave with Ruby on Rails

NetBeans, SVN, SSH and multiple repositories

Posted on November 15, 2008 - Filed Under tips

I know git is right choice for VCS, but… not all have converted yet and NetBeans does not support git (yet, since work is in progress?).

If You are still stuck in SVN world – in NetBeans FAQ You can find guide how to setup svn+ssh protocol to work with NetBeans.

On Windows (as always) are some gotchas when You setup svn+ssh.

First, connect to host with PuTTy to populate PuTTys key cache – otherwise You won’t be able use command line SVN tools.

Second – don’t dare to set default IP address in PuTTy (that is default host name for Default Settings). If You do, no matter what URL You give as SVN repo address, plink.exe will try connect to default IP/hostname instead to SVN repo. Probably this is not what You want plink to do.

All is working and You need to setup another repository?

As a freelancer I do work with different customers and if more than one uses svn+ssh URL schema, how to setup NetBeans?

Well it can be achieved with little trick. You need to create new schema named for example svn+ssh2 and adjust SVN config.

Example! Example!

Let’s assume we have: