8000 A more elaborate git log · rplabon/github-cheat-sheet@43ea584 · GitHub
[go: up one dir, main page]

Skip to content

Commit 43ea584

Browse files
committed
A more elaborate git log
Beautiful git log that looks just like gitk.
1 parent 8642db7 commit 43ea584

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,12 +558,14 @@ This is produced:
558558
Running:
559559

560560
```bash
561-
$ git log --all --graph --decorate --oneline --abbrev-commit
561+
$ git log --all --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\n--abbrev-commit --date=relative
562562
```
563563

564564
Produces:
565565

566-
![git log --all --graph --decorate --oneline --abbrev-commit](http://i.imgur.com/RUPycwI.png)
566+
![git log --all --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\n--abbrev-commit --date=relative](http://imgur.com/ZcMZiD3)
567+
568+
Add this as an alias to your global git config. Credit to [Palesz](http://stackoverflow.com/users/88355/palesz)
567569

568570
*This can be aliased using the instructions found [here](https://github.com/tiimgreen/github-cheat-sheet#aliases).*
569571

0 commit comments

Comments
 (0)
0