没有要添加的.gitmodules文件,行ignore=dirty



因此,当前我在尝试提交/推送时在终端中遇到此错误:

Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
(commit or discard the untracked or modified content in submodules)
modified:   guarded-headland-03173 (modified content)

显然,答案只是在.gitmodules文件中添加ignore=dirty,但问题是没有适合我的.gitmodules.

我必须放入终端的全部内容是:

git status --ignore-submodules=dirty

最新更新