Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. To remove a submodule you need to:
  2.  
  3. - Delete the relevant section from the `.gitmodules` file.
  4. - Delete the relevant section from `.git/config`.
  5. - Run `git rm --cached path_to_submodule` (no trailing slash).
  6. - Run e.g. `rm -rf .git/modules/path_to_submodule` (no trailing slash).
  7. - Delete the now untracked submodule files e.g. `rm -rf path_to_submodule`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement