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) 回答1: The pathspec :(exclude) and its short form :! or :^ is available only within a Git working tree. So: either, as commented, you can put it in a (temporary) git local repo (git init . + git add) or you would need to do your git diff --no-index in a find -exec command with exclude directives. 来源: https:/