Skip to content

Instantly share code, notes, and snippets.

@datenimperator
Created January 13, 2015 08:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save datenimperator/ecb86dc86093ee73c63e to your computer and use it in GitHub Desktop.
Save datenimperator/ecb86dc86093ee73c63e to your computer and use it in GitHub Desktop.
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
Copy link
Author

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

@calle2010
Copy link

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