From e61efefed73a6b686cfad993bb689aa168a04e09 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Tue, 30 Jul 2019 11:27:55 -0400 Subject: [PATCH] Add alias to cd to git toplevel --- .aliases/command-specific/git | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.aliases/command-specific/git b/.aliases/command-specific/git index 1c5e68e..0a7ae3c 100644 --- a/.aliases/command-specific/git +++ b/.aliases/command-specific/git @@ -1,3 +1,4 @@ ## git alias git-yolo='git commit -am "`curl -s http://whatthecommit.com/index.txt`"' -alias diff='git diff --no-index' \ No newline at end of file +alias diff='git diff --no-index' +alias gcdr='cd "$(git rev-parse --show-toplevel)"' # cd to top level