Community

How to rename your Drupal.org project, preserving commit logs

Last updated September 28, 2012.

From time to time you might find yourself in need of renaming a project on Drupal.org and you want to preserve commit history. Here's a tutorial using iconfonts -> admin_icons module as an example.

  1. Create the new project, e.g. admin_icons.
  2. Clone the old project, e.g. git clone --recursive --branch 7.x-1.x webchick@git.drupal.org:project/iconfonts.git
  3. In the old project, add a remote to the new project: git remote add admin_icons webchick@git.drupal.org:project/admin_icons.git
  4. Push the current code to the new project: git push admin_icons 7.x-1.x
  5. Repeat for each branch, e.g. git checkout 8.x-1.x; git push admin_icons 8.x-1.x
  6. Make sure to update the Maintainers list on the new project matches the old project's maintainers so that you'll see the commits in the sidebar.

Done!

nobody click here