how to move the changes from one branch to another in git code example Example: git transfer changes to another branch git stash git checkout -b new-branch git stash pop