Alex Rivera | Logout

Use git on existing SVN repo

Asked 2012-06-14T07:48:48.807
18

I work with a legacy svn repo. However, I would like to enjoy the benefits of git on my local machine.

  • The first option is git init the root of my current repo, write code, and independently commit code locally (git commit) and remotely (svn commit).
  • The second option is git-svn, but I don't know if it's worth the troube of learning the nuances of a new tool.

How should I go about this?

Edit
Report

1 Answer

5

The best way would be migrating to git and throwing away SVN.

However, if that's not an option use git-svn.

When commiting to git/svn separately you'll most likely end up commiting to SVN only very rarely which would result in other developers ending up with huge commits.

answered 2012-06-14T07:52:08.257

Your Answer