Created
January 13, 2015 08:50
-
-
Save datenimperator/ecb86dc86093ee73c63e to your computer and use it in GitHub Desktop.
Convert SVN to git
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
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
Das Argument
username
wird verwendet, wenn zum Zugriff auf http Anmeldedaten nötig sind.