Guest User

Untitled

a guest
Jan 16th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. To add a new submodule:
  2. - Run git submodule add <git_url> <path>
  3.  
  4. To remove a submodule:
  5.  
  6. - Delete the relevant section from the .gitmodules file.
  7. - Stage the .gitmodules changes git add .gitmodules
  8. - Delete the relevant section from .git/config.
  9. - Run git rm --cached path_to_submodule (no trailing slash).
  10. - Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  11. - Commit git commit -m "Removed submodule <name>"
  12. - Delete the now untracked submodule files rm -rf path_to_submodule
Add Comment
Please, Sign In to add comment