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