11/30/10

SVN username with svn+ssh, the correct way

If you use svn+ssh and want to connect to an external server with a different username than the one you are currently logged in with on your local computer you can try to use svn+ssh://username@host. This will work until you have externals in your repository, svn will in some way forget your username. So a better way is to specify your username in the ssh configfile.

So add a file if it not exists:
.ssh/config

Host svn.host
User yourusername

9/15/10

Oneliner for removing svn and git metainfo

If you receive a code tree that someone has to forgot to remove version control system metainfo from it here is a one liner for removing it.

.svn files:
find . -type d -name ".svn" | xargs rm -rf

.git files:
find . -type d -name ".git" | xargs rm -rf