#!/usr/bin/env bash set -euo pipefail repo_name=$(basename "$(git remote get-url origin)") git remote rename origin upstream git remote add origin "git@github.com:thatsmydoing/$repo_name"