Ignore space changes with Git
In situations where you can see content changes in git (e.g. git show
, git diff
, etc.), you can exclude any changes
to blankspace from the output by using the -w
option. This can be really helpful if you have done linting, etc.
Examples:
git show -w
git diff -w some/random/file.py
git diff --ignore-space-change some/random/file.py