Skip to content

Instantly share code, notes, and snippets.

@rwoeber
Created June 17, 2011 09:02
Show Gist options
  • Select an option

  • Save rwoeber/1031102 to your computer and use it in GitHub Desktop.

Select an option

Save rwoeber/1031102 to your computer and use it in GitHub Desktop.
git-svn
user1 = Joe User <joe.user@example.com>
user2 = Jane User <jane.user@example.com>

check structure (trunk, tags, branches?)

svn list --verbose vn+ssh://my.svn.server/path/to/svn/project

migrate and svn (no svn upstream)

git svn clone -T trunk -t tags -b branches  --no-metadata --authors-file=./authors.txt svn+ssh://my.svn.server/path/to/svn/project
# if no trunks, branches, tags
git svn clone --no-metadata --authors-file=./authors.txt svn+ssh://my.svn.server/path/to/svn/project

migrate and svn (keep upstream svn for git-svn)

git svn clone -T trunk -t tags -b branches --authors-file=./authors.txt svn+ssh://my.svn.server/path/to/svn/project
# if no trunks, branches, tags
git svn clone  --authors-file=./authors.txt svn+ssh://my.svn.server/path/to/svn/project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment