Git diff says subproject is dirty

后端 未结 9 1832
情话喂你
情话喂你 2020-11-28 17:47

I have just run a git diff, and I am getting the following output for all of my approx 10 submodules

diff --git a/.vim/bundle/bufexplorer b/.vim/bundle/bufe         


        
9条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-28 18:19

    To ignore all untracked files in any submodule use the following command to ignore those changes.

    git config --global diff.ignoreSubmodules dirty
    

    It will add the following configuration option to your local git config:

    [diff]
      ignoreSubmodules = dirty
    

    Further information can be found here

提交回复
热议问题