docs:git:submodules

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

docs:git:submodules [2010/09/29 10:28] – created billhdocs:git:submodules [2011/07/21 11:53] (current) billh
Line 16: Line 16:
 (checks out the submodule) (checks out the submodule)
 </code> </code>
 +
 +===== removing a submodule =====
 +  - Delete the relevant line from the .gitmodules file.
 +  - Delete the relevant section from .git/config.
 +  - Run git rm --cached path_to_submodule (no trailing slash).
 +  - Commit and delete the now untracked submodule files.
 +
 +Source: http://stackoverflow.com/questions/1260748/how-do-i-remove-a-git-submodule
  
 ===== cloning a project that has submodules ===== ===== cloning a project that has submodules =====
  • docs/git/submodules.1285777736.txt.gz
  • Last modified: 2010/09/29 10:28
  • by billh