Created
September 26, 2012 07:45
-
-
Save quoidautre/3786635 to your computer and use it in GitHub Desktop.
Convert svn repository 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
| mkdir ~/Sites/repo_tmp | |
| cd ~/Sites/repo_tmp | |
| git-svn init https://svn.example.com/repo/trunk/ --no-metadata | |
| git config svn.authorsfile ~/Sites/git-users.txt | |
| git-svn fetch | |
| git-svn show-ignore > .gitignore | |
| git add .gitignore | |
| git commit -m "Convert svn ignored files to .gitignore" | |
| cd ~/Sites | |
| git clone repo_tmp repo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment