Reputation: 721
Does any one how to exclude files when comparing folders with git diff --no-index ? It seems this option
':(exclude)*.min.css'
does not work with no-index (outside working tree)
Upvotes: 14
Views: 2177
Reputation: 1323793
The pathspec :(exclude) and its short form :! or :^ is available only within a Git working tree.
So:
git diff --no-index
in a find -exec
command with exclude directives.Upvotes: 7