LoginSignup
0
1

More than 5 years have passed since last update.

gitで自分の仕事を振り返りたいときに使うワンライナー

Last updated at Posted at 2018-12-20
git log --oneline --pretty=format:'%h [%cd] %d %s <%an>' --date=format:'%Y/%m/%d %H:%M:%S' --author=hoge@example.com

# 下記のような感じで表示される
# c20e98963 [2018/08/24 18:28:23]  コミットメッセージ3 <hoge>
# b20e98962 [2018/08/24 18:28:22]  コミットメッセージ2 <hoge>
# a20e98961 [2018/08/24 18:28:21]  コミットメッセージ1 <hoge>
# ...

下半期、何の作業してたっけなぁと、振り返りたいときに使えます。

追記:2018-12-20 16:49 会社で色付きをバージョンを作ってくれた方が居たので、許可を得て下記を掲載しました♪

git log --oneline --pretty=format:'%Cred%h%Creset %Cgreen[%cd]%Creset %C(yellow)%d%Creset %s %C(bold blue)<%an>%Creset' --date=format:'%Y/%m/%d %H:%M:%S' --author=hoge@example.com

見やすいです!!

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1