git create new repository from existing branch from another repository 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