wrong branch? git: move changes to the right branch

Working on the wrong branch ? (e.g. master)
do:

git stash
git checkout rightbranch
git stash apply

Comments