From 6a448daf5fedff456d1be5b0e58ada5dbe12d637 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Fri, 17 Apr 2026 10:53:37 +0100 Subject: refactor: clean up git aliases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove 'stage = add' — redundant with 'a = add'. - Add 'cp = cherry-pick' — common operation without a shortcut. - Add 'lg = log --graph --oneline' — visual branch graph. --- home/.config/git/config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home/.config/git/config b/home/.config/git/config index bba5ed3..e59a2dc 100644 --- a/home/.config/git/config +++ b/home/.config/git/config @@ -91,6 +91,7 @@ bd = branch -D c = commit ca = commit --amend --no-edit + cp = cherry-pick d = diff dft = -c diff.external=difft diff dl = -c diff.external=difft log -p --ext-diff @@ -104,6 +105,7 @@ fp = push --force-with-lease gone = !git for-each-ref --format '%(refname:short) %(upstream:track)' | awk '$2 == \"[gone]\" {print $1}' | xargs -r git branch -D l = log + lg = log --graph --oneline lm = log --pretty=medium m = merge mt = mergetool @@ -114,7 +116,6 @@ rt = restore s = status st = status --no-short - stage = add staged = diff --cached sub = submodule subf = submodule foreach -- cgit v1.2.3-70-g09d2