git create new local branch from current 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