#!/bin/sh
[ $1 ] || exit 1
branch=$(git symbolic-ref --short HEAD)
git config branch.$branch.remote $1
git config branch.$branch.merge refs/heads/${2:-$branch}