I want to create new branch, 'B'. Currently, I have a master branch (local and remote) and feature branch 'A' (local).

Feature branch(A) is deleted in remote. Also, I have some files committed and unstaged files in my local feature branch. I want to go to *master* without losing any of changes and create another branch, commit the branch first, and then commit my new changes. How can I do it?