Say I had a repo structure with the following unstaged changes:
modified: A/B/C/file1
modified: A/B/C/D/file2
modified: A/B/E/file3
How would I revert changes from only file1 and file2 with a single command? The command git checkout -- A/B/C/* doesn't work because A/B/C also contains several generated files which aren't versioned. The error from git is "error: pathspec 'A/B/C/file4' did not match any file(s) known to git"