nav HOME » 2012 » February

Easy way to convert svn repository to git

To quickly convert svn repo to git (with history), all you need is: git svn clone my_svn_adddress But, you’ll probably also want to convert old svn usernames to git author names + e-mails. You can do that with -A switch: git svn clone my_svn_adddress -A users.txt users.txt example: my_old_username = My Name <my_email@example.com> my_old_username2 = [...]

Posted in System administration
Tags: ,

Easy way to remove all .svn directories inside directory tree

If you want to check first what will be removed (good idea), run: find . -name .svn -type d Now run the same command with rm xargs: find . -name .svn -type d | xargs rm -rf

Posted in Linux
Tags: , ,

Zsh named directories

Zsh has a useful feature called Named directories. Usage is simple, you can define it with hash command: hash -d my_dir=/home/user/some/deep/directory/structure Now you can use it like normal directory, just add prefix ~: cd ~my_dir cp ~my_dir/file.txt /other_dir/

Posted in Linux
Tags: ,