Using git for offline svn access

Once in a while I have to work on projects that still use Subversion, it doesn’t happen that often but it does. And while svn isn’t that bad to work with, it does require an internet connection to make commits.

Initial checkout

Getting the initial codebase from svn:

This can take a while on a large repo, so get a coffee in the mean time 😉
Alternatively… you can also checkout a portion of the revisions instead of all of them (comparable to “git –depth”) like this:

Staying up to date

First make sure we’re still working on the master branch:

And after that:

Pushing back to subversion

 

Et voilà, a subversion repository which you can also use offline.

Bookmark and Share

Tags:

About Rick van Hattem

Rick van Hattem is a Dutch Internet entrepreneur and co-founder of Fashiolista.com
No comments yet.

Leave a Reply