I have a git diff --no-index --diff-filter=M fsl-4-14-98/rsr1296/tmp/work/all-poky-linux/ca-certificates/*/git/ fsl-4-14-98-b/rsr1296/tmp/work/all-poky-linux/ca-certificates/*/git/ > diff_Modified/diff_Modified_ca-certificates.txt and I need to exclude a folder inside git/ named logs (also all its files inside).
I tried ':!logs' but I receive
Not a git repository
To compare two paths outside a working tree:
usage: git diff [--no-index] <path> <path>
Is there a way to achieve what I'm trying to do?
Edit: Every possibile solution I tried was only for a git diff between an online repo and a local directory. In my case I have two local directories, that's why I'm using --no-index.
I can't find anything online that works.