From 353671f26873f590124b8ecd0fd448f37374ecb0 Mon Sep 17 00:00:00 2001 From: Jeremy Kaplan Date: Thu, 20 Feb 2020 07:54:23 -0800 Subject: [PATCH] git: bn + pushu --- git/config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/git/config b/git/config index 8373421..220d233 100644 --- a/git/config +++ b/git/config @@ -22,6 +22,7 @@ default = simple [alias] ap = add -p b = branch +bn = symbolic-ref --short HEAD bv = branch -vv c = commit chk = commit -a -n -m 'CHECKPOINT' @@ -38,6 +39,7 @@ lag = log --graph --decorate --pretty='%C(auto)%h%d %s | %C(cyan)%an%C(reset) %C lg = log --graph --decorate --pretty='%C(auto)%h%d %s | %C(cyan)%cn%C(reset) %C(green)<%cr>%C(reset)' mb = merge-base HEAD pushf = push --force-with-lease +pushu = "!pushu() { git push --set-upstream \"${1:-origin}\" \"${2:-$(git bn)}\"; }; pushu" rb = rebase root = rev-parse --show-toplevel sb = show-branch