Skip to content

Instantly share code, notes, and snippets.

@mrtazz
Created January 10, 2010 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrtazz/273558 to your computer and use it in GitHub Desktop.
Save mrtazz/273558 to your computer and use it in GitHub Desktop.
#!/bin/sh
git stash
git symbolic-ref HEAD refs/heads/$1
rm .git/index
git clean -f -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment