|
1
git diff [options] <commit> <commit> [--] [<path>...]
|
|
2
git diff HEAD^ HEAD
zsh: no matches found: HEAD^ $ git diff HEAD\^ HEAD 成功. 用的zsh 发现head后面的^需要转意 |
|
yanggOct 22, 2014
3
git show # view the diff of last commit
git whatchanged git log --stat --date=relative |
|
spritevanOct 22, 2014
4
git log -p path_to_file
|
|
vibbowOct 23, 2014
5
sourcetree
|
|
julyclydeOct 23, 2014
6
如果pull的时候merge进来很多commit
就不能用HEAD和HEAD~1比较了吧? |