create a new branch with current changes code example
Example: create a new branch based on another branch
//when on branch 'dev' make branch 'myFeature' off of 'dev'
git checkout -b myfeature dev
//when on branch 'dev' make branch 'myFeature' off of 'dev'
git checkout -b myfeature dev