Skip to content

Instantly share code, notes, and snippets.

@amiel
Created April 25, 2012 21:35
Show Gist options
  • Save amiel/2493655 to your computer and use it in GitHub Desktop.
Save amiel/2493655 to your computer and use it in GitHub Desktop.
git checkout --merge example
$ git checkout some_branch
error: Your local changes to the following files would be overwritten by checkout:
Gemfile
Please, commit your changes or stash them before you can switch branches.
Aborting
$ git stash
$ git checkout some_branch
$ git stash pop
$ git checkout --merge some_branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment