(!) Please ask about problems and questions regarding this tutorial on answers.ros.org. Don't forget to include in your question the link to this page, the versions of your OS & ROS, and also add appropriate tags.

Porting from Google Code to Github (Implementation Notes)

Description: Short instructions for moving a package from Google code to Github

Keywords: SVN Git

Tutorial Level: ADVANCED

Contents

  1. Porting Steps

Porting Steps

  1. Install svn2git tool, see here

  2. Create 'author transform map' file in a local checkout of the stack to port using (from here):

    svn log -q | awk -F '|' '/^r/ {sub("^ ", "", $2); sub(" $", "", $2); print $2" = "$2" <"$2">"}' | sort -u > authors-transform.txt
  3. Create a directory for stack/metapackage to port (NOTE: Each stack should be ported to it's own repository):
    svn2git --no-minimize-url --verbose --rootistrunk --authors PATH_TO_THE_AUTHORS_FILE https://swri-ros-pkg.googlecode.com/svn/trunk/<stack>
  4. Create a repository on Github with the appropriate stack/metapackage name. see here

  5. Link newly created repository to Github repo:
    git remote add origin https://github.com/ros-industrial/<stack>
  6. Pull any files from the newly created remote (typically a README and a .gitignore):
    git pull origin
  7. Push the ported stack/metapackage:
    git push

Wiki: Industrial/Tutorials/Porting_from_Google_Code_to_Github (last edited 2013-06-03 20:20:09 by GvdHoorn)