git move unstaged changes to a new branch code example
Example 1: how to move unstaged changes to different branch
git stash
git checkout -b new-branch
git stash pop
Example 2: commit unstaged changes to new branch
git checkout -b new_branch_name