8000 Update git log style · ZeroTheFool/github-cheat-sheet@2f9c842 · GitHub 8000
[go: up one dir, main page]

Skip to content

Commit 2f9c842

Browse files
committed
Update git log style
Improve readability with Different colors for different refs
1 parent fd092f3 commit 2f9c842

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,12 +589,12 @@ This is produced:
589589
Running:
590590

591591
```bash
592-
$ git log --all --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
592+
$ git log --all --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
593593
```
594594

595595
Produces:
596596

597-
![git log --all --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative](http://i.imgur.com/R2z8l7c.png)
597+
![git log --all --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative](http://i.imgur.com/R2z8l7c.png)
598598

599599
Credit to [Palesz](http://stackoverflow.com/users/88355/palesz)
600600

0 commit comments

Comments
 (0)
0