From 76dee9bafe2aeb2f47fe30ee99defebb27ecd6c0 Mon Sep 17 00:00:00 2001 From: Grégoire Duchêne Date: Sun, 10 Sep 2023 18:42:20 +0100 Subject: git: Add ‘root’ alias to find top-level directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- git/config | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'git/config') diff --git a/git/config b/git/config index afd48eb..6878252 100644 --- a/git/config +++ b/git/config @@ -1,11 +1,12 @@ [alias] - br = branch - co = checkout - di = diff - dis = diff --staged - fa = fetch --all --prune - gi = grep -i - st = status + br = branch + co = checkout + di = diff + dis = diff --staged + fa = fetch --all --prune + gi = grep -i + root = rev-parse --show-toplevel + st = status [branch] autoSetupRebase = always -- cgit v1.2.3-70-g09d2