From 26e8a7be82c4286d97d617318fabb99f30055756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Uma=C3=B1a?= Date: Thu, 8 Mar 2018 16:48:00 -0600 Subject: [PATCH] An alternative with shorter hash, author and relative date for "Visualize the version tree." tip, has been added. --- README.md | 5 +++++ tips.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8681c13..f13ee01 100644 --- a/README.md +++ b/README.md @@ -665,6 +665,11 @@ __Alternatives:__ gitk --all ``` + +```sh +git log --graph --pretty=format:'%C(auto) %h | %s | %an | %ar%d' +``` + ## Deploying git tracked subfolder to gh-pages ```sh git subtree push --prefix subfolder_name origin gh-pages diff --git a/tips.json b/tips.json index 0cc3d88..6de1373 100644 --- a/tips.json +++ b/tips.json @@ -219,7 +219,7 @@ }, { "title": "Visualize the version tree.", "tip": "git log --pretty=oneline --graph --decorate --all", - "alternatives": ["gitk --all"] + "alternatives": ["gitk --all","git log --graph --pretty=format:'%C(auto) %h | %s | %an | %ar%d'"] }, { "title": "Deploying git tracked subfolder to gh-pages", "tip": "git subtree push --prefix subfolder_name origin gh-pages",