mirror of
https://github.com/tiimgreen/github-cheat-sheet.git
synced 2025-08-09 17:36:37 +02:00
A more elaborate git log
Beautiful git log that looks just like gitk.
This commit is contained in:
@@ -558,12 +558,14 @@ This is produced:
|
|||||||
Running:
|
Running:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ git log --all --graph --decorate --oneline --abbrev-commit
|
$ 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
|
||||||
```
|
```
|
||||||
|
|
||||||
Produces:
|
Produces:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
Add this as an alias to your global git config. Credit to [Palesz](http://stackoverflow.com/users/88355/palesz)
|
||||||
|
|
||||||
*This can be aliased using the instructions found [here](https://github.com/tiimgreen/github-cheat-sheet#aliases).*
|
*This can be aliased using the instructions found [here](https://github.com/tiimgreen/github-cheat-sheet#aliases).*
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user