Discuss / Git / 未提交前输入git diff只显示修改后的内容,修改前的并没有显示

未提交前输入git diff只显示修改后的内容,修改前的并没有显示

Topic source

$ git diff

diff --git a/readme.txt b/readme.txt

index e69de29..5fbfb0d 100644

--- a/readme.txt

+++ b/readme.txt

@@ -0,0 +1,2 @@

+Git is a distribute version control system.

+Git is free software.

\ No newline at end of file

这是为什么呢

飞舞之博

#2 Created at ... [Delete] [Delete and Lock User]

原readme.txt是空白。


  • 1

Reply