git-fork 191 B

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