In my working tree there's a directory with several modified files that I temporarily would like to not see when I do git status. But this should ideally be done without modifying the "state" of my working tree.  How could I do this?
I looked at man git-status but couldn't see an option to exclude a specific directory.
Some workarounds:
- Use git status | grep -v dir-to-exclude, but then I lose the pretty colours.
- Specify all the other directories and files as arguments to git status, i.e. git status dir-1 dir-2 dir-3 file-1 file-2
- Use git stashto temporarily store modifications indir-to-exclude/, but that modifies my state
- Temporarily add dir-to-exclude/to.gitignore, but that modifies the state of my working tree and I have remember to revert the change. It also does not work for modified version controlled files.
- Use some other command than git status, if one exists???
If there's no ready made option for git status, then somehow using grep without losing the pretty colours is perhaps what I should be using.
 
     
     
    