2022年2月21日

摘要: 根据commit生成patch 可以使用如下两种方式。1. git format-patch -1 commit :生成的patch有统计信息和git的版本信息2. git diff commit_previous commit > mypatch.diff :最原始的diff信息,对于这里的com 阅读全文
posted @ 2022-02-21 15:36 tycoon3 阅读(196) 评论(0) 推荐(0)
摘要: 有这样的 目录层次 x/xx/xxx/xxx/ttt.c而 我的 当前位置 是在 x/下 ,执行git diff> test.patch 在test.patch补丁文件里的路径信息是这样的:- - - a/xx/xxx/xxx +++b/xx/xxx/xxx 如果 应用 test.patch 的时候 阅读全文
posted @ 2022-02-21 15:07 tycoon3 阅读(198) 评论(0) 推荐(0)

导航