git log 累積

tags:    時間:2014-05-04 13:22:09
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 的用法很多,慢慢累積,也在此慢慢記錄。

推薦閱讀文章

Bookmark the permalink ,來源:互聯網