is this thing on?

Fri Mar 21

migrate from svn to git

pull the svn history into a new git repository:

  • mkdir project_name.svn
  • cd project_name.svn
  • git svn init path/to/svn/repo —no-metadata
  • echo “svn_username = Real Name <email.address@example.com>” > users.txt
  • git config svn.authorsfile users.txt
  • git svn fetch
make an svn-free git repository:
  • mkdir project_name.git 
  • cd project_name.git
  • git init
  • git remote add origin path/to/git/repo
  • git pull project_name.svn
  • git push origin master
done!