Batch undo git modifications

The following command can be used to find and checkout (undo) all files with modifications:

This is effectively an “undo” of all modifications in the given branch (but it doesn’t impact added or deleted files).