how to copy a branch from same repo code example
Example: export github branch from one repository to another
$ git remote -v
remote2 [email protected]:repo2.git (fetch)
remote2 [email protected]:repo2.git (push)
origin [email protected]:repo.git (fetch)
origin [email protected]:repo.git (push)