Skip to content

Instantly share code, notes, and snippets.

@carlosmcevilly
Created May 11, 2012 01:42
Show Gist options
  • Save carlosmcevilly/2656980 to your computer and use it in GitHub Desktop.
Save carlosmcevilly/2656980 to your computer and use it in GitHub Desktop.
git stash current changes to a new branch
git stash save
git branch xxx HEAD
git checkout xxx
git stash pop
or do:
git checkout -b xxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment