#!/bin/sh git clone "$1" cd "$(basename "$1" .git)" || exit git remote add upstream "$2" if ! git checkout fly; then git branch fly git checkout fly git push --set-upstream origin fly fi