Git/submodule: Difference between revisions
from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< Git
Created page with "==Help Screen== <pre> usage: git submodule [--quiet] [--cached] or: git submodule [--quiet] add [-b <branch>] [-f|--force] [--name <name>] [--reference <repository>] [--] <..." |
No edit summary |
||
| 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>...]
