Skip to content

Instantly share code, notes, and snippets.

@keesvanbochove
Created July 2, 2012 11:46
Show Gist options
  • Save keesvanbochove/3032840 to your computer and use it in GitHub Desktop.
Save keesvanbochove/3032840 to your computer and use it in GitHub Desktop.
Transfer NBIC Trac projects to GitHub
mbpkees:projects kees$ git svn --no-metadata --authors-file=authors clone -s https://trac.nbic.nl/svn/grails-plugins -T dbxpModuleBase/trunk dbxp-module-base
cd dbxp-module-base
git remote add origin git@github.com:thehyve/dbxp-module-base.git
@keesvanbochove
Copy link
Author

First, create an empty project on GitHub.
Then run this command locally.
In the authors file (put rules like svnname = github email@some.thing) you can define the mapping to GitHub users.
-T ../trunk makes sure that you check out only trunk in the root of the GitHub project.
Finally, you can add the remote to the project you created (3rd line) and then do a git push --force origin master to the repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment