From 41df4083362f5c9a0e7fc1f3d4dcd422ee3ff6f1 Mon Sep 17 00:00:00 2001 From: Braydon Kains Date: Sat, 9 Sep 2023 00:09:07 -0400 Subject: [PATCH] add helpers --- shell_functions.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 shell_functions.sh diff --git a/shell_functions.sh b/shell_functions.sh new file mode 100644 index 0000000..c2e220c --- /dev/null +++ b/shell_functions.sh @@ -0,0 +1,10 @@ +function sync_fork() { + git fetch upstream + BRANCH=$1 + if [ -z "$BRANCH" ]; then + BRANCH="main" + fi + git rebase upstream/$BRANCH + git push -f +} +