File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -558,12 +558,14 @@ This is produced:
558
558
Running:
559
559
560
560
``` 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
562
562
```
563
563
564
564
Produces:
565
565
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 )
567
569
568
570
* This can be aliased using the instructions found [ here] ( https://github.com/tiimgreen/github-cheat-sheet#aliases ) .*
569
571
You can’t perform that action at this time.
0 commit comments