Skip to content

Instantly share code, notes, and snippets.

@wesgarrison
Created November 13, 2009 15:52
Show Gist options
  • Save wesgarrison/233916 to your computer and use it in GitHub Desktop.
Save wesgarrison/233916 to your computer and use it in GitHub Desktop.
function gc {
if [ -z "$1" ]; then
git checkout master
else
git checkout $1
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment