git checkout -b forgottoswitch
All modified files are now available in the new branch forgottoswitch
I made changes but want to switch to a branch without committing my changes. Although I might want to go back to changes
git stash
Changes are now available in a stash. Enter git stash help
to see extra commands.
e.g switch to a branch with the stashed items:
git stash branch actually_do_want_a_new_branch
git push origin forgottoswitch
After pushing a branch to github don't forget to click on the pull request
button in the github webclient