$git diff origin/master HEAD --name-only
显示本地和origin/master分支的diff文件名
src/lib/array.h
git diff origin/master HEAD
显示本地和origin/master分支的diff内容
----
2017.7.4 update
1. 查看本地已经commit,但未push的版本
git cherry -v
2. 查看版本中的具体代码
git show xxxxx_version_id