I find this to be annoying because I would like to quickly switch branches and do something and then switch back to what I was working on before. I realize I can stash and t
You can avoid it using git stash to stash your changes. Then you can change branch, then restore the branch and getting back your changes:
$ git stash $ git checkout other_branch $ git checkout original_branch $ git stash pop