43 Syncing with Subversion

One of Git’s key advantages over other DVCSs early on was its ability to communicate with Subversion through git-svn. Though other DVCSs now have integration with Subversion to varying degrees, Git still leads the pack.

git-svn is installed by default on most systems, but on Ubuntu and other Linux-based systems that break up software into individual packages. you do need to install it separately (see Task 1, ​Installing Git​).

You can clone a Subversion repository with a standard layout[19] by using git svn clone -s and providing Git with the repository URL. You can use --trunk, --tags, and --branches to provide Git with a custom location for your trunk, tags, and branches.

Creating a clone is all you ...

Get Pragmatic Guide to Git now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.