First, go to the new branch using
git checkout -b <new-branch-name>
This will checkout to a new branch or existing branch from your current there you can add files using
git add <files>
And commit the files using
git commit -m”your commit message”
Thus we can move existing uncommitted work to a new branch and there you can commit.