git log formatting

后端 未结 4 1504
不思量自难忘°
不思量自难忘° 2021-01-30 23:52

I need to have format like:

git log --decorate --graph --oneline --date-order

but I need it also:

  1. to contain date (short)
4条回答
  •  甜味超标
    2021-01-31 00:08

    In addition in your git config you can add two lines like this:

    [format]
      pretty = %Cblue%h%Creset %Cgreen[%ar]%Creset (%an) %s 
    

    This just means you can type git log and it will always be formatted.

提交回复
热议问题