Files
30-seconds-of-code/snippets/delete-submodule.md
Isabelle Viktoria Maciohsek ee28929328 Make expertise a field
2022-03-01 20:23:46 +02:00

679 B

title, tags, expertise, firstSeen, lastUpdated
title tags expertise firstSeen lastUpdated
Delete a submodule repository,submodule advanced 2021-04-08T20:05:15+03:00 2021-04-13T21:10:59+03:00

Deletes a submodule from the repository.

  • Use git submodule deinit -f -- <submodule> to unregister the specified <submodule>.
  • Use rm -rf .git/modules/<submodule> to remove the directory of the submodule.
  • Use git rm -f <submodule> to remove the working tree of the submodule.
git submodule deinit -f -- <submodule>
rm -rf .git/modules/<submodule>
git rm -f <submodule>
git submodule deinit -f -- 30code
rm -rf .git/modules/30code
git rm -f 30code
# Removes the `30code` submodule