I would like to ignore files when running a git diff
or a git status
from the command shell using a simple file pattern.
I'm able to "apply the diff or status only to the files that match this pattern", but I don't know how to say "ignore the files that match this pattern" instead.
What I'm doing right now to apply the commands to a subset of files is:
$ git status */models.py
$ git diff */models.py
I'd like to be able to do this from the command line, without setting preferences to Git. Is that possible?