我有一个 git 子模块,即使我从未更新它,它也会在 git 状态中不断显示“已修改”。
# On branch master
# 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: MKNetworkKit (new commits, untracked content)
#
如何阻止 git 思考它?我尝试将 MKNetworkKit 添加到 .gitignore 但它没有做任何事情。