I need to check the git status and find all files which is not ".txt" format.
I know how to find all files which is in this format:
$TextFiles = $(git status --short *.txt --porcelain | Measure-Object | Select-Object -expand Count)
How can I do the same but to retrieve all other files with NO text format??
I've tried this way but it didn't work...
$NoTextFiles = $(git status --short -ne *.txt --porcelain | Measure-Object | Select-Object -expand Count)