1
hongfeiyu Mar 31, 2016
3q
|
2
jsonline Mar 31, 2016 glog='git log --graph --pretty=format:''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'' --abbrev-commit --'
|
3
xi_lin Mar 31, 2016
不错~
|
4
SelFree Mar 31, 2016
alias.lg=log --color --graph --format=format:'%C(bold blue)%h%C(reset): %C(bold green)(%ad)%C(reset) %C(bold yellow)<%an>%C(reset)%C(bold red)%d%C(reset)%n'' %C(reset)%s%C(reset)' --date=local --abbrev-commit
|
5
SelFree Mar 31, 2016
```
|
6
SelFree Mar 31, 2016 ```
lg=log --color --graph --format=format:'%C(bold blue)%h%C(reset): %C(bold green)(%ad)%C(reset) %C(bold yellow)<%an>%C(reset)%C(bold red)%d%C(reset)%n'' %C(reset)%s%C(reset)' --date=local --abbrev-commit ``` |
7
caixiexin Mar 31, 2016
win 下的 git bash 貌似用不了?
|
8
araraloren Mar 31, 2016
不错,都挺好看。。。
|
9
clino Mar 31, 2016
最好加一个 --decorate 这样能看到对应的 reference
|
10
smartdie Mar 31, 2016
谢谢,非常棒,借鉴了一下
|
11
Busy Mar 31, 2016
|
12
Busy Mar 31, 2016
授人鱼不如授人以渔
|
13
sunwei0325 Mar 31, 2016
不错不错, 谢谢楼主分享!
|
14
SpicyCat Mar 31, 2016
可以试试 tig
|
22
pktangyue OP @caixiexin
git config --global alias.glog 'log --pretty=format:"%C(auto)%h %C(magenta)<%ad> %C(green)[%an] %C(blue normal bold)| %Creset%s%C(auto)%d" --graph --date=short' 试试用命令加进去看看? |
25
GPU Mar 31, 2016
root@debian:~/test# git glog
fatal: bad color value 'auto' for variable '--pretty format' * root@debian:~/tests# |
26
pktangyue OP |
27
sunjourney Apr 2, 2016
zsh git plugin 可破,glog
|