From a30452afbc6e7ff96d735360a9410a213a3e77f5 Mon Sep 17 00:00:00 2001 From: Sam Willcocks Date: Mon, 13 Jun 2022 16:41:32 +0100 Subject: [PATCH] git: add more aliases --- home/git.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/home/git.nix b/home/git.nix index 4cf8e7f..17af468 100644 --- a/home/git.nix +++ b/home/git.nix @@ -29,6 +29,8 @@ rai = "rebase --autostash --interactive"; rs = "restore --staged"; st = "status"; + sw = "switch"; + swc = "switch --create"; gone = '' ! git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' │ awk '$2 == "[gone]" {print $1}' | xargs -r git branch -D'';