You can specify as an argument a list with all the files in your repository using git ls-files , for example:
git check-attr myAttr `git ls-files`
If there are too many files in your repository, you can make the following message:
- bash: / usr / bin / git: argument list too long
which you can overcome with xargs :
git ls-files | xargs git check-attr myAttr
Finally, if you have too many files, you probably want to filter out those where you did not specify an argument to make the output more readable:
git ls-files | xargs git check-attr myAttr | grep -v 'unspecified$'
With grep, you can apply more filters to this result to match only the files you want.
Juan source share