committed to wrong branch code example Example: committed to wrong branch git stash git checkout branch123 git stash apply