你能让 git apply 进行一次演练吗?

The*_*ron 7 git patch git-apply

我想知道,使用 git apply 应用 .patch 文件时会写入哪些文件。

有没有办法通过试运行在 git 中应用 .patch 文件?

Rom*_*eri 12

git apply --summary path/to/file.patch
Run Code Online (Sandbox Code Playgroud)

将输出信息而不应用补丁。

请参阅文档