git: add more aliases

This commit is contained in:
Sam W 2022-06-13 16:41:32 +01:00
parent a1274f54ef
commit a30452afbc
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,8 @@
rai = "rebase --autostash --interactive"; rai = "rebase --autostash --interactive";
rs = "restore --staged"; rs = "restore --staged";
st = "status"; st = "status";
sw = "switch";
swc = "switch --create";
gone = '' gone = ''
! git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' awk '$2 == "[gone]" {print $1}' | xargs -r git branch -D''; ! git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' awk '$2 == "[gone]" {print $1}' | xargs -r git branch -D'';