gitpatchgit-apply

Can you make git apply with a dry run?


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?


Solution

  • git apply --summary path/to/file.patch
    

    would output info without applying the patch.

    See in the doc.