读git diff输出

fro*_*odo 5 git diff github

我刚刚开始学习如何使用git并在下面的文件上运行git diff - 我对你如何阅读输出感到有点困惑 -

根据我的理解到目前为止,下面说的是工作目录和与file01相关的索引与file02之间存在差异.有些人可以用英语解释你如何阅读这部分输出 - >@@ -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
Run Code Online (Sandbox Code Playgroud)

n.r*_*.r. 8

@@ -1,4 +1 @@方式:

-1,4:这是从第1行开始的原始的4行.

+1 这是新版本的1行.