From 92ce13cba42f99401891f63116702101f51375b1 Mon Sep 17 00:00:00 2001 From: Larry Lu Date: Thu, 15 Nov 2018 18:21:22 +0800 Subject: [PATCH] git-log: show branch graph (#2587) --- pages/common/git-log.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/common/git-log.md b/pages/common/git-log.md index 813c1ef55..19c5c3d3b 100644 --- a/pages/common/git-log.md +++ b/pages/common/git-log.md @@ -18,7 +18,11 @@ `git log --stat` -- Show all commits, tags and branches for the entire repo in a graph format: +- Show a graph of commits in the current branch: + +`git log --graph` + +- Show a graph of all commits, tags and branches in the entire repo: `git log --oneline --decorate --all --graph`