From 43ea5847c181d0ceae194ee19da4b017cfdc1f6e Mon Sep 17 00:00:00 2001 From: RasPat1 Date: Thu, 17 Apr 2014 14:57:44 -0400 Subject: [PATCH 1/2] A more elaborate git log Beautiful git log that looks just like gitk. --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 65f8d5f..20f67b8 100644 --- a/README.md +++ b/README.md @@ -558,12 +558,14 @@ This is produced: Running: ```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: -![git log --all --graph --decorate --oneline --abbrev-commit](http://i.imgur.com/RUPycwI.png) +![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) + +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).* From 3c20d96ec7b0040b2be1a5229db495fefc56957d Mon Sep 17 00:00:00 2001 From: RasPat1 Date: Thu, 17 Apr 2014 17:01:40 -0400 Subject: [PATCH 2/2] Remove \n Update image Random \n and image replaced with consistent terminal output --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 20f67b8..31dc98e 100644 --- a/README.md +++ b/README.md @@ -563,7 +563,7 @@ $ git log --all --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s Produces: -![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) +![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) Add this as an alias to your global git config. Credit to [Palesz](http://stackoverflow.com/users/88355/palesz)