|
hongfeiyuMar 31, 2016
1
3q
|
|
2
glog='git log --graph --pretty=format:''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'' --abbrev-commit --'
|
|
xi_linMar 31, 2016
3
不错~
|
|
SelFreeMar 31, 2016
4
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
|
|
SelFreeMar 31, 2016
5
```
|
|
6
```
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 ``` |
|
caixiexinMar 31, 2016
7
win 下的 git bash 貌似用不了?
|
|
araralorenMar 31, 2016
8
不错,都挺好看。。。
|
|
clinoMar 31, 2016
9
最好加一个 --decorate 这样能看到对应的 reference
|
|
smartdieMar 31, 2016
10
谢谢,非常棒,借鉴了一下
|
|
BusyMar 31, 2016
11
|
|
BusyMar 31, 2016
12
授人鱼不如授人以渔
|
|
sunwei0325Mar 31, 2016
13
不错不错, 谢谢楼主分享!
|
|
SpicyCatMar 31, 2016
14
可以试试 tig
|
|
22
@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' 试试用命令加进去看看? |
|
GPUMar 31, 2016
25
root@debian:~/test# git glog
fatal: bad color value 'auto' for variable '--pretty format' * root@debian:~/tests# |
|
26
|
|
sunjourneyApr 2, 2016
27
zsh git plugin 可破,glog
|