Everyone who has worked with git for some time and has to go back to subversion will experience the feeling that subversion is doing so many things wrong and making things unnecessary
complicated. Luckily git comes with a build in svn bridge which enables us to work local with git while on the server side nobody will see a difference to any other svn client.
To start working with git we need to checkout the svn repository. Therefore a empty folder has to be created locally which is not under git control currently. Therefore type on your shell:
After that change to that folder and perform the checkout/clone:
git svn clone https://192.168.178.1/svn/MyRepo -T trunk -t tags
The IP 192.168.178.1 has to be replaced by the IP of the subversion repository. The option -T trunk -t tags tell git that we want to checkout the trunk only (which is a folder on the svn repository named “trunk”) with the svn tags. For a full clone with all branches etc the option -stdlayout is needed:
git svn clone https://192.168.178.1/svn/MyRepo -stdlayout
After this the git repository is ready to work with. How my workflow with git svn looks like will be topic of the next post.