#!/bin/bash git checkout $1 git branch -m $1 $2 git fetch git branch --unset-upstream git branch -u origin/$2