function sync_fork() { git fetch upstream BRANCH=$1 if [ -z "$BRANCH" ]; then BRANCH="main" fi git rebase upstream/$BRANCH git push -f }