Skip to content

Instantly share code, notes, and snippets.

@bmjames
Created May 24, 2011 11:51
Show Gist options
  • Save bmjames/988578 to your computer and use it in GitHub Desktop.
Save bmjames/988578 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
if ([ -z "$1" ] || [ -z "$2" ]); then
echo "usage: $0 <alias> <branch>"
exit
fi
CMD="git symbolic-ref refs/heads/$1 refs/heads/$2"
echo $CMD
$CMD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment