问题
What does the folowing output of git diff
mean?
diff --git a/README.md b/README.md
index 24aa464..49c20f4 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,2 @@
LINE1
-LINE2
LINE3
I think I understand that the "-" new LINE2 means that the version on have in workspace does not have the LINE2 that is in staging, but what does @@ -1,3 +1,2 @@
mean??
回答1:
It is the line ranges that the diff is concerned with for that hunk, meaning lines 1 to 3 in a/README.md and lines 1 to 2 in b/README.md.
来源:https://stackoverflow.com/questions/14896469/understanding-git-diff-on-files