to create a branch 


    git branch <branchname>


to select a branch 


    git checkout <branchname>



git commit the code/and push to the new selected branch