标签:git log
git log 的用法,具体参考 git log --help,以下是个人在使用中遇见的问题,略作统计。
查看单个文件的修改差异(类似于查看单个文件的log,同时将每次log 的详细记录都显示出来):
--full-diff
Without this flag, git log -p <path>...
shows commits that touch the specified paths, and diffs about the same specified paths. With this, the full diff is shown for commits that touch the specified paths; this means that "<path>…" limits only commits, and doesn’t
limit diff for those commits.
$ git log -p <path>... test.c $ git log -u <path>... test.c $ git log -patch <path>... test.c具体查看,结合使用 -p --stat 效果更清晰,详细参考git-log help的COMMAN DEFF OPTIONS:
$ git log -p --stat <path>...test.c
标签:git log
原文地址:http://blog.csdn.net/n289950578/article/details/24794149