1
0
mirror of synced 2026-01-01 09:04:46 -05:00
Files
docs/data/reusables/pages/remove-submodule.md
Vanessa Yuen 3df90fc9b8 Hello git history spelunker!
Are you looking for something? Here is all of the GitHub Docs history in one single commit. Enjoy! 🎉
2020-09-27 14:10:11 +02:00

10 lines
476 B
Markdown

To troubleshoot, first decide if you actually want to use a submodule, which is a Git project inside a Git project; submodules are sometimes created accidentally.
If you don't want to use a submodule, remove the submodule, replacing <em>PATH-TO-SUBMODULE</em> with the path to the submodule:
```shell
$ git submodule deinit <em>PATH-TO-SUBMODULE</em>
$ git rm <em>PATH-TO-SUBMODULE</em>
$ git commit -m "Remove submodule"
$ rm -rf .git/modules/<em>PATH-TO-SUBMODULE</em>
```