export github branch from one repository to another

C++
$ 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)

Source

Also in C++: