Git Diff Recursive
I’m working on a project that has Git submodules tightly coupled to the parent repo. I wanted a way to see all changes in the project, including submodules, at once. The following alias does the trick:
diff-recursive = !git --no-pager diff --color=always --ignore-submodules && \
git --no-pager submodule --quiet foreach --recursive git diff --color=always