git diff 打补丁
Posted zengkefu
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git diff 打补丁相关的知识,希望对你有一定的参考价值。
[[email protected] demo]# git diff old new >cc.diff
[[email protected] demo]# cat cc.diff
diff --git a/old/a/p/foo.txt b/new/a/p/foo.txt
index f041bcd..7351245 100644
--- a/old/a/p/foo.txt
+++ b/new/a/p/foo.txt
@@ -1,2 +1,2 @@
-old_line_1
-old_line_2
+new_line_1
+new_line_2
以上是关于git diff 打补丁的主要内容,如果未能解决你的问题,请参考以下文章