Adam @ Heroku
a tornado of razorblades

Git Submodule

Posted by Adam Wiggins on June 25, 2008 at 12:09 AM

Git submodules are pretty cool, except for kind of sucking. Things I don't recommend doing if you value your sanity:

  • Switching a submodule from one repository to another (i.e., editing .gitmodules and changing the repo url)
  • Switching a directory from a submodule to regular content
  • Switching a directory with regular content to a submodule (though this might help you)

It's a shame, because submodules are pretty handy. But you'll probably end up wanting to do one of these things during the lifetime of your project, and then you're screwed.

Tags: git
Hierarchy: previous, next

Comments

There is 1 comment on this post. Post yours →

Adam, why aren't you using Piston? Piston 1.9 has support for Git. Piston won't keep the full history, but at least you'll get the latest revision you want ? Piston update is the only command that's left to implement (but it's arguably the most important one). Piston's home page is at http://piston.rubyforge.org/ This page still documents Piston 1.4.

Post a comment

Required fields in bold.