jani_r
jani_r

Reputation: 721

git diff noindex exclude files

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

Answers (1)

VonC
VonC

Reputation: 1323793

The pathspec :(exclude) and its short form :! or :^ is available only within a Git working tree.

So:

Upvotes: 7

Related Questions