1显示暂存区中的目录树
git ls-files
git ls-tree
git diff 魔法
1工作区与暂存区比较
git diff
2工作区与HEAD比较
git diff HEAD
3暂存区与HEAD比较
git diff --cached
git diff --cached HEAD
1显示暂存区中的目录树
git ls-files
git ls-tree
git diff 魔法
1工作区与暂存区比较
git diff
2工作区与HEAD比较
git diff HEAD
3暂存区与HEAD比较
git diff --cached
git diff --cached HEAD
转载于:https://www.cnblogs.com/a-flydog/p/5764970.html