1
git diff
diff --git a/lids b/lids
index 1191247..2b2f2e1 100644
--- a/lids
+++ b/lids
@@ -1,2 +1,2 @@
1
-2
+3
git diffdiff --git a/lids b/lids
index 1191247..2b2f2e1 100644
--- a/lids
+++ b/lids
@@ -1,2 +1,2 @@
1
~
-2
+3
~
我只需要-2和+3 如何使用grep或shell腳本執行該操作?在shell腳本中的Git diff解析
看來你要問,你不想要'diff'輸出任何__context__? – devnull