From 58d26581fa3af296adfd051ea14c71567da732f3 Mon Sep 17 00:00:00 2001 From: Bez Hermoso Date: Wed, 18 Oct 2017 13:34:04 -0700 Subject: [PATCH] Git trick: Go back up to root directory --- git-tricks.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/git-tricks.md b/git-tricks.md index 5905a1f64..16874e4e8 100644 --- a/git-tricks.md +++ b/git-tricks.md @@ -85,6 +85,9 @@ Misc # show single commit info git log -1 f5a960b5 + # Go back up to root directory + cd "$(git rev-parse --show-top-level)" + ## Short log $ git shortlog