1.直接生成.patch
git diff commitID_1 commiID_2 > aaa.patch
2.生成树结构的差别文件:
(方便用bcompare对比)
git diff commitID_1 commitID_2 --name-only || xargs -I{} cp --parents {} /home/patchPath/
【git】记录一下打patch命令,导出树结构的文件patch
猜你喜欢
转载自blog.csdn.net/John_chaos/article/details/114255885
今日推荐
周排行