#!/usr/bin/env bash set -euo pipefail BRANCH=`git symbolic-ref --short HEAD` REMOTE=`git config branch.$BRANCH.remote` git reset $REMOTE/$BRANCH $*