I have two directories with files that are similar and I want to see the diff of any files that are different. This works:
git diff --no-index ./dir1 ./dir2
However, there are files in those directories that I want to ignore in the diff. It apparently doesn't matter whether those files are included in a .gitignore which I think makes sense.
Is this possible?
More context, this is for a workshop and each directory is a step in the workshop. I want to have a way to show the needed changes in each step of the workshop. The directories have some generated files and I don't want to show those generated files in the output. Additionally, I've got some node_modules in there which would not be desirable in the output.
Also, I like the paging functionality of git diff. Also, most people going through the workshop are used to git diff. so I do want to use this rather than some other tool.