如何设置Git Diff参数?

时间:2013-12-25 13:38:22

标签: git

我使用Git Diff命令想要查找上下文差异。

但只看到索引信息。

如何显示文件的不同信息

Git配置设置错误了?。

是我的git命令结果

谢谢大家。

C:\GitProject\DiffTestProject [master +0 ~1 -0]> git diff
diff --git a/a.txt b/a.txt
index 07d4aba..e9944e6 100644
Binary files a/a.txt and b/a.txt differ

1 个答案:

答案 0 :(得分:0)

git diff filename //see uncommitted changes
git diff --cached //see the difference between index and last commit.