Guest User

Untitled

a guest
Feb 21st, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. 1- Delete the relevant section from the .gitmodules file. The section would look similar to:
  2. [submodule "vendor"]
  3. path = vendor
  4. url = git://github.com/some-user/some-repo.git
  5. 2- Stage the .gitmodules changes via command line using:git add .gitmodules
  6. 3- Delete the relevant section from .git/config, which will look like:
  7. [submodule "vendor"]
  8. url = git://github.com/some-user/some-repo.git
  9. 4- Run git rm --cached path/to/submodule . Don't include a trailing slash -- that will lead to an error.
  10. 5- Run rm -rf .git/modules/submodule_name
  11. 6- Commit the change:
  12. 7- Delete the now untracked submodule files rm -rf path/to/submodule
Add Comment
Please, Sign In to add comment