git diff commit1 commit2 -- 你的文件路径 > patch-file.patch
git apply patch-file.patch
Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐