From 03739aa566644ff58c4bf9d75bab005812b06b2e Mon Sep 17 00:00:00 2001 From: Nicholas Novak <34256932+NickyBoy89@users.noreply.github.com> Date: Sat, 24 Feb 2024 21:43:55 -0800 Subject: [PATCH] feat: Added shortcut to set git upstream --- shell/.shell-common | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shell/.shell-common b/shell/.shell-common index 11957d6..9c5d513 100644 --- a/shell/.shell-common +++ b/shell/.shell-common @@ -10,3 +10,6 @@ alias grep='grep --color=auto' # Class picker alias c="nli class-list" + +# Connect upstream back +git branch --set-upstream-to=origin/$(git branch --show-current) $(git branch --show-current)