#!/bin/bash set -eux # 1. Collect URL of the incoming repo # 2. Check it is in our remotes # 3. If it isn't, add it # 4. Fetch the remote # 5. Create new branch mapfile REMOTES < <(git remote -v|awk '{print $1,$2;}')