Linux Today: Linux News On Internet Time.

More on LinuxToday

Migrate from SVN to Git easily with git-svn

Jul 06, 2011, 16:01 (0 Talkback[s])
(Other stories by Juliet Kemp)


Desktop-as-a-Service Designed for Any Cloud ? Nutanix Frame

[ Thanks to Lee Schlesinger for this link. ]

"git-svn is a neat, straightforward tool that allows you to run a Git repository locally, then sync back against a central Subversion repository. Obviously, this is useful if you want to try Git out, or if your workmates aren't interested in switching but you prefer Git. But it's also handy for anyone who regularly works offline – for example, when traveling. Git, unlike SVN, is a distributed version control system, which means that you have your own local copy of the repository. This, combined with the ease of branching (which we'll talk about in a moment), means that you can keep track of your changes locally and incrementally, committing them to your own repository as often as you like, until you're ready to commit the whole lot back to the main repository. By contrast, with a normal Subversion repository, it's all or nothing; you can't track any incremental changes that you can't or don't want to commit to the main repository – as you might wish to do, for example, with temporarily broken code on its way to a refactor. If you've ever got halfway through coding a feature change and started to feel nervous about how much you have untracked, you'll appreciate this option. For more on Git's advantages in this area, see the Wazi article Rewriting History with Git."

Complete Story

Related Stories: