If this branch is new, you can simply create it:
git checkout -b anewbranch
git add .
git commit -m "message"
But if this branch is old, you can cherry-pick commit instead :
- add and commit
- go to the old branch
- git cherry grip master
Then reset go to its previous commit
git checkout master
git reset --hard @~1
git stash, .