How to make git ignore changes to submodules by default

后端 未结 5 1879
无人共我
无人共我 2021-01-05 12:11

Since gitmodules were introduced in Git, I like to add them like so:

[submodule \"actionbarsherlock\"]
path = actionbarsherlock
url = git://github.com/JakeWh         


        
5条回答
  •  我在风中等你
    2021-01-05 12:49

    Do you mean this?

    git config --global core.ignore dirty

    which writes the preference to your ~/.gitconfig file.

提交回复
热议问题