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 +} +