Categorized: Git

Remove a Git Submodule

  1. Delete the relevant line from the .gitmodules file.
  2. Delete the relevant section from .git/config.
  3. Run git rm --cached path/to/submodule (no trailing slash).
  4. Commit and delete the now untracked submodule files.

Source

  • Chat conversation with JTJ.

Comments

Nothing to see here yet. Start things off, why don't you?

What do you think about that?

Elsewhere in the empire: Home, Blog, APOD