* git log [#xf0dd21e]
#author("2019-04-11T17:25:38+09:00","default:ryuichi","ryuichi")
* git log [#o66939aa]

** diffを表示する [#me42b7ce]
 git log --stat
他に
 git log --numstat
 git log --shortstat
#lsx

** 他のブランチのログも表示する [#ud9d51e9]
 git log --all

*** 他のブランチのログも表示して、ツリー表示にする [#yd443749]

 git log --all --graph

 * commit 09de85f42f988f2d5b1f7a50d278a2c8b39ec538
 | Author: na <na>
 | Date:   Sun Feb 19 12:46:25 2012 +0900
 |
 |     update 1.txt
 |
 | * commit d62c71a1764fd449ef8fac7dca1d5eb3da46b37c
 |/  Author: na <na>
 |   Date:   Sun Feb 19 12:45:27 2012 +0900
 |
 |       add 2.txt
 |
 * commit e514dac7778307714ffbabddf37b76d1a6717c04
   Author: na <na>
   Date:   Sun Feb 19 12:44:42 2012 +0900
 
       add 1.txt
↑は「add 2.txt」が別ブランチとして分岐している。

** ログフォーマットを指定して表示する [#ke6d1fac]
 git log --color --format=full
 git log --color --format=medium
 git log --color --format=short

*** ログフォーマットを個別指定して表示する [#se4fafe0]
 git log --graph --all --color --date=short --pretty='%x09%h %cn%x09%ad %s %Cred%d'

 *       09de85f na      2012-02-19 update 1.txt  (HEAD, master)
 | *     d62c71a na      2012-02-19 add 2.txt  (branch1)
 |/
 *       e514dac na      2012-02-19 add 1.txt

*** それのエイリアスを設定する [#xdb8be57]
 git config --global alias.log2 "log --graph --all --color --date=short --pretty='%x09%h %cn%x09%ad %s %Cred%d'"

** 参考 [#tc2df8e6]
http://transitive.info/article/git/command/log/


トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS