/ Published in: Bash
First, create ~/Sites/git-users.txt to convert the svn usernames to git users: admin = Beanstalk admin@example.com jmiller = J Miller jmiller@example.com
Expand |
Embed | Plain Text
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
Comments
Subscribe to comments
You need to login to post a comment.

To get a list of all committers: svn log -q | awk -F '|' '/^r/ {sub("^ ", "", $2); sub(" $", "", $2); print $2" = "$2" "}' | sort -u
[source: http://john.albin.net/git/convert-subversion-to-git]