I have uncommitted local changes. I would like to create a new branch and move the changes there.
Is my understanding correct? I should do:
git diff > my_work.txt
git checkout -b new_branch_name
git push origin new_branch_name
git apply my_work.txt