Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Convert SVN to git
user1 = Full Name <fullname@email.com>
user1_alias = Full Name <fullname@email.com>
user2 = Another Name <anothername@email.com>
# erzeugt neues Verzeichnis new_git_repo_name
git svn clone http://yourhost/svn/repo [--username=user] --authors-file=authors.txt --no-metadata -s new_git_repo_name
@datenimperator

This comment has been minimized.

Copy link
Owner Author

@datenimperator datenimperator commented Jan 13, 2015

Das Argument username wird verwendet, wenn zum Zugriff auf http Anmeldedaten nötig sind.

@calle2010

This comment has been minimized.

Copy link

@calle2010 calle2010 commented Jan 13, 2015

Danke! Wegen zusätzlicher Komplikationen (non-standard layout, tags) lasse ich mich auch noch hiervon inspirieren: http://blokspeed.net/blog/2010/09/converting-from-subversion-to-git/ http://www.sailmaker.co.uk/blog/2013/05/05/migrating-from-svn-to-git-preserving-branches-and-tags-3/#convert-tags
Ich möchte außerdem die SVN revisions nicht verlieren, also kein no-metadata. Evtl, werde ich noch git-filter-branch einsetzen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.