赞
踩
Show changes between commits, commit and working tree, etc
是一个用来查看差异的工具。
$ git diff -h
usage: git diff [<options>] [<commit> [<commit>]] [--] [<path>...]
信息量过少
git diff
或者
git diff filename
git diff --cached
或者
git diff --cached filename
(Git 1.6.1 及更高版本还允许使用 git diff --staged,效果是相同的)
git diff HEAD
git diff topic master
git diff HEAD^ HEAD
git diff 818c5faf28d0a0e5c8133dbd77dd24e6e70db9bf 2e1b4bced0f0ce2c20362789be2878b36c6910f7
git diff [version tag]
git diff f2b85bf7f7516a6a6a0768e44266d09414b03a2e
git diff [branchA]…[branchB]
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。