我追求的目标是调用git diff --verbose
(错误:无效选项)以获得调用git commit --verbose
时获得的相同输出:
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# Changes to be committed:
# modified: README.md
#
# Untracked files:
# .gitignore
#
# ------------------------ >8 ------------------------
# Do not touch the line above.
# Everything below will be removed.
diff --git a/README.md b/README.md
index 267d5e2..b5f70de 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,4 @@
-# Sandbox
+# SANDBOX
+Some new text
我发现git diff --patch-with-stat
如此接近但输出不是很友好,并且它没有显示我需要的未跟踪文件。
README.md | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 267d5e2..b5f70de 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,4 @@
-# Sandbox
+# SANDBOX
+Some new text
git diff --verbose
在哪里?有没有办法通过另一个命令获得与git commit --verbose
相同的输出?
答案 0 :(得分:1)