git commit current changes to existing branch

git commit current changes to existing branch

git stash
git checkout other-branch
git stash pop

Source: stackoverflow.com