码迷,mamicode.com
首页 > 其他好文 > 详细

git diff 打补丁

时间:2017-08-01 11:08:49      阅读:159      评论:0      收藏:0      [点我收藏+]

标签:station   foo   font   cat   打补丁   line   lin   roo   dex   

[root@workstation2017 demo]# git diff old new >cc.diff
[root@workstation2017 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 打补丁

标签:station   foo   font   cat   打补丁   line   lin   roo   dex   

原文地址:http://www.cnblogs.com/zengkefu/p/7267086.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!