我已经修改了一个我之前从它自己的 github 存储库中克隆的 puppet 模块。我唯一更改的是配置文件模板,没什么大不了的(pg_hba.conf.erb 用于 pgsql-aware)。
问题是我无法将修改后的模块添加到我的存储库中。
[ngw@chienandalusia:~/outline.li]$ git status (08-13 15:18)
# On branch develop
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
# (commit or discard the untracked or modified content in submodules)
#
# modified: puppet/modules/postgresql (modified content)
#
no changes added to commit (use "git add" and/or "git commit -a")
[ngw@chienandalusia:~/outline.li]$ git add puppet (08-13 15:19)
[ngw@chienandalusia:~/outline.li]$ git add puppet/modules/postgresql
[ngw@chienandalusia:~/outline.li]$ git status (08-13 15:20)
# On branch develop
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
# (commit or discard the untracked or modified content in submodules)
#
# modified: puppet/modules/postgresql (modified content)
#
no changes added to commit (use "git add" and/or "git commit -a")
我目前没有看到这种行为的任何原因,并且不是 git 专家,我不完全确定如何调试它。FWIW 在我的 .gitignore 中没有任何内容可以阻止将更改暂存以进行提交,并且 git status 显然同意我的看法。即使使用 -f 标志也无济于事。
有人有任何线索吗?