#!/bin/sh
if [ -z "$1" ]; then
    remote="origin"
else
    remote=$1
fi
git remote set-head $remote -a
