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 GithubKeywords: SVN Git
Tutorial Level: ADVANCED
Contents
Porting Steps
Install svn2git tool, see here
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
- 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>
Create a repository on Github with the appropriate stack/metapackage name. see here
- Link newly created repository to Github repo:
git remote add origin https://github.com/ros-industrial/<stack>
- Pull any files from the newly created remote (typically a README and a .gitignore):
git pull origin
- Push the ported stack/metapackage:
git push