2012-12-13 94 views
5

我剛開始學習如何使用Git並已經在文件上運行下面的git的差異 - 我是個有點困惑,你如何讀取輸出 -閱讀git的差異輸出

從我瞭解到目前爲止以下是說工作目錄和索引與file01和file02有區別。能someboby你如何讀取輸出的這部分英文解釋 - >@@ -1,4 +1 @@

感謝您的幫助

diff --git a/file01 b/file01 
index cc17fa4..d0a432b 100644 
--- a/file01 
+++ b/file01 
@@ -1,4 +1 @@ 
-datafiles 
-file01 
-file02 
-file03 
+This is a change 
diff --git a/file02 b/file02 
index e69de29..552c22e 100644 
--- a/file02 
+++ b/file02 
@@ -0,0 +1 @@ 
+and this is another change 

回答

8

@@ -1,4 +1 @@表示:

-1,4:這裏是從原來的起點4線從第1行開始。

+1這裏是從新版本的1行。