我刚刚开始学习如何使用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)
| 归档时间: |
|
| 查看次数: |
2289 次 |
| 最近记录: |