$ git diff
diff --git a
/test.txt b/test.txt
index 576477b
..fcc85ae 100644
--- a
/test.txt
+++ b/test.txt
@@ -
1,6 +1,11 @@
 this
 is
 a
+modified
 text
 file
 
.
+some
+new
+lines
+.

 



@@ 用来表明这是一块
-1,6  表明这一块在修改前从第一行开始,总共有六行
+1,11 表明这一块在修改后从第一行开始,修改后总共有十一行

-和+表明新旧,不是加减的意思

相关文章:

  • 2022-12-23
  • 2021-10-20
  • 2022-12-23
  • 2021-10-06
  • 2021-12-31
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-22
相关资源
相似解决方案