Return to Snippet

Revision: 44749
at April 17, 2011 12:24 by jmiller


Initial Code
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

Initial URL


Initial Description
First, create ~/Sites/git-users.txt to convert the svn usernames to git users:
admin = Beanstalk <[email protected]>
jmiller = J Miller <[email protected]>

Initial Title
Convert svn repository to git

Initial Tags


Initial Language
Bash