create a branch in a repository git code example
Example: git create new repo from branch
$ git push https://github.com/accountname/new_repo.git +old_branch:master
$ git push https://github.com/accountname/new_repo.git +old_branch:master