How to ignore "dirty" git submodules

Edit .gitmodules and add ignore = dirty to all modules where you want to ignore the -dirty state.

Example:

.gitmodules.example
[submodule "themes/tailbliss"]
        path = themes/tailbliss
        url = https://github.com/ulikoehler/tailbliss.git
        ignore = dirty

 


Check out similar posts by category: Git