Convert SVN Repository To Git

Now, I'm moving to Git. After use Subversion as SCM for a few years. Start from our need for distributed SCM and want to try SCM that been used in Linux Kernel development.

For Subversion user, Git prepare tool to make migration from subversion easily. This tool is git-svn. On Ubuntu operating system, we can install Git and git-svn from apt-get.

$ sudo apt-get install git-core git-svn

Here git-svn usage on convert Svn repository to Git

$ mkdir git-test
$ cd git-test
$ git svn clone http://svnrepository/path/to/repo -T trunk -b branches -t tags

After run those commands above, Svn repository will duplicate to Git. Check Git log to ensure that convertion done correctly.

$ git log

So, are you still hesitate move to git?

Other Links:
1. http://git.or.cz/gitwiki/GitSvnComparsion
2. http://git.or.cz/course/svn.html

Comments

Thanks, it is a short but

Thanks, it is a short but very useful article.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options