Can you make git apply with a dry run?

4.8k Views Asked by At

I would like to know, which files would be written when applying a .patch file with git apply.

Is there a way to apply a .patch file in git with a dry run?

1

There are 1 best solutions below

4
Romain Valeri On BEST ANSWER
git apply --summary path/to/file.patch

would output info without applying the patch.

See in the doc.