Guest User

Untitled

a guest
Oct 23rd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. To remove a submodule you need to:
  2.  
  3. ```
  4. # Remove the submodule entry from .git/config
  5. git submodule deinit -f path/to/submodule
  6.  
  7. # Remove the submodule directory from the superproject's .git/modules directory
  8. rm -rf .git/modules/path/to/submodule
  9.  
  10. # Remove the entry in .gitmodules and remove the submodule directory located at path/to/submodule
  11. git rm -f path/to/submodule
  12.  
  13. git commit -m "removed submodule"
  14. ```
Add Comment
Please, Sign In to add comment