--no-warn-embedded-repo 默认情况下,git add将在向索引添加嵌入式存储库时发出警告,而不使用git submodule add在.gitmodules中创建条目。此选项将抑制警告(例如,如果手动对子模块执行操作)。 --renormalize Apply the "clean" process freshly to all tracked files to forcibly add them again to the index. ...
extern void repo_read_gitmodules(struct repository *repo); extern void gitmodules_config_oid(const struct object_id *commit_oid); extern const struct submodule *submodule_from_name( const struct object_id *commit_or_tree, const char *name); extern const struct submodule *submodule_from_path(...
git add [--verbose | -v] [--dry-run | -n] [--force | -f] [--interactive | -i] [--patch | -p] [--edit | -e] [--[no-]all | --[no-]ignore-removal | [--update | -u]] [--sparse] [--intent-to-add | -N] [--refresh] [--ignore-errors] [--ignore-missing] ...
It's fine for me, however, my nitpick would be that --recursive is a switch on the git submodule foreach command so for certain people, it might be confusing: Does it mean that submodules are also cleaned or submodules are always cleaned but this will perform a recursive clean within ...
在使用hugo并安装主题时遇到的错误SSL certificate problem: unable to get local issuer certificate (base) PS E:\vscodeProject\chz8bit.github.io\quickstart> git submodule add https://github.com/nanxiaobei/hugo-paper themes/paper Cloning into 'E:/vscodeProject/chz8bit.github.io/quickstart/themes/pap...
--no-warn-embedded-repo By default,git addwill warn when adding an embedded repository to the index without usinggit submodule addto create an entry in.gitmodules. This option will suppress the warning (e.g., if you are manually performing operations on submodules). ...
今天想在项目中添加一个submodule 一直报这个错, 原因是有相同名字的模块已经存在于git的索引中。 如果确认项目中没有同名的模块, 只需运行命令: git rm -r --cached XXXXX (报错模块的相对路径,即XXXXX already exists in the index 中的XXXXX)
而公共代码库的版本管理是个麻烦的事情。幸运的是,万能的Git有个叫子模组(git submodule)的命令完美地...
"[...] create a branch when you work in a submodule directory with git checkout -b work or something equivalent. When you do the submodule update a second time, it will still revert your work, but at least you have a pointer to get back to." ...
答:示例如下: fatal: Pathspec 'Vundle.vim/autoload/vundle.vim' is in submodule '.vim/bundle/Vundle.vim' 解决办法: git rm -rf --cached .vim/bundl