From a204a3a5da27b0209bbde49bd40170f7d439c0b8 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Sat, 12 Mar 2022 11:04:16 +0100 Subject: [PATCH] git: add pu alias to set remote origin and push branch --- .gitconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitconfig b/.gitconfig index d4334c0..041e309 100644 --- a/.gitconfig +++ b/.gitconfig @@ -34,6 +34,7 @@ f = fuzzy status fd = fuzzy diff fl = fuzzy log fs = fuzzy status +pu = "!git push --set-upstream origin $(git symbolic-ref --short HEAD)" ll = log --graph --date=relative --topo-order --pretty='format:%C(yellow)%h%C(yellow)%d %Cblue%ar %Cgreenby %an%Creset -- %s' lla = log --graph --date=relative --topo-order --pretty='format:%Cgreen%h %Cblue%ar %Credby %an%Creset -- %s' --all