how to create a new branch with current changes code example
Example 1: git create new branch from current
git checkout -b topic/newbranch
Example 2: create a new branch based on another branch
//when on branch 'dev' make branch 'myFeature' off of 'dev'
git checkout -b myfeature dev