Difference between revisions of "Git/submodule"
< Git
Jump to navigation
Jump to search
(Created page with "==Help Screen== <pre> usage: git submodule [--quiet] [--cached] or: git submodule [--quiet] add [-b <branch>] [-f|--force] [--name <name>] [--reference <repository>] [--] <...") |
|||
Line 1: | Line 1: | ||
+ | ==Notes== | ||
+ | I don't know what the official command is for removing a submodule, but if you delete the submodule's folder and then stage & commit, that seems to do the trick. It's probably a good idea to remove or edit the <code>{{l/same|.gitmodule}}</code> file accordingly. | ||
==Help Screen== | ==Help Screen== | ||
<pre> | <pre> |
Latest revision as of 00:40, 12 November 2021
Notes
I don't know what the official command is for removing a submodule, but if you delete the submodule's folder and then stage & commit, that seems to do the trick. It's probably a good idea to remove or edit the .gitmodule
file accordingly.
Help Screen
usage: git submodule [--quiet] [--cached] or: git submodule [--quiet] add [-b <branch>] [-f|--force] [--name <name>] [--reference <repository>] [--] <repository> [<path>] or: git submodule [--quiet] status [--cached] [--recursive] [--] [<path>...] or: git submodule [--quiet] init [--] [<path>...] or: git submodule [--quiet] deinit [-f|--force] (--all| [--] <path>...) or: git submodule [--quiet] update [--init] [--remote] [-N|--no-fetch] [-f|--force] [--checkout|--merge|--rebase] [--[no-]recommend-shallow] [--reference <repository>] [--recursive] [--] [<path>...] or: git submodule [--quiet] set-branch (--default|--branch <branch>) [--] <path> or: git submodule [--quiet] set-url [--] <path> <newurl> or: git submodule [--quiet] summary [--cached|--files] [--summary-limit <n>] [commit] [--] [<path>...] or: git submodule [--quiet] foreach [--recursive] <command> or: git submodule [--quiet] sync [--recursive] [--] [<path>...] or: git submodule [--quiet] absorbgitdirs [--] [<path>...]