First steps:

  1. Identify all authors for the SVN repository and create an author to email mapping, save it as such as this:

    bvan = Brian Van Klaveren <bvan@slac.stanford.edu>
    srs = Jenkins <srs@slac.stanford.edu>
    ...
  2. rsync the svn repository where the project resides to your local machine, or work directly on the server (you get a 40x speed up)
  3. Install svn2git (sudo gem install svn2git)
  4. Create new directory for your project and cd into that project
  5. svn2git file:///path/to/rsynced/subversion/org-srs-datacat --authors=../contributors.txt

  6. Once done, you have a local repository with proper branches and tags, assuming you'r tags are kosher (no additional commits)

  7. You can push that to a recently created repository on GitHub like this:

    git remote add origin git@github.com:brainv0/my-recently-created-repo.git
    git push origin --all   # Note, doesn't push tags!
    git push origin --tags  # So we push them this way

 

  • No labels