daily pastebin goal
31%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 1. Delete the relevant section from the .gitmodules file.  The section would look similar to:
  2. ```
  3. [submodule "vendor"]
  4.     path = vendor
  5.     url = git://github.com/some-user/some-repo.git
  6. ```
  7. 2. Stage the .gitmodules changes via command line using:
  8. ```
  9. git add .gitmodules
  10. ```
  11. 3. Delete the relevant section from .git/config, which will look like:
  12. ```
  13. [submodule "vendor"]
  14.     url = git://github.com/some-user/some-repo.git
  15. ```
  16. 4. Run git rm --cached path/to/submodule .  Don't include a trailing slash -- that will lead to an error.
  17. 5. Run rm -rf .git/modules/submodule_name
  18. 6. Delete the now untracked submodule files rm -rf path/to/submodule
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top