how to commit to another branch in github code example Example: commit to another branch git stash git checkout other-branch git stash pop