Git: can I suppress listing of 'modified content'/dirty submodule entries in status, diff, etc?

后端 未结 9 1667
谎友^
谎友^ 2020-11-28 02:32

Somewhen (around the 1.6.x releases, I think) git became aware of changes inside submodules. That only serves to annoy me:

$ git status vendor | grep modified:
#          


        
9条回答
  •  我在风中等你
    2020-11-28 02:58

    I've answered this question here in greater detail.

    Just run

    git config --global diff.ignoreSubmodules dirty
    

    to add a local config option to ignore those changes.

提交回复
热议问题