Git - push a specific commit to a new repo
Developer A was previously push everything to my-repo, eventually developer B created a new repo and clone all commits from old repo.
Developer B doesn't inform A, thus A continue to work on old repo.
Now, B request A to push the latest commit to the new repo
First of all, add the new repo URL to the project
$ cd /path/to/project
$ git remote add neworigin email@example.com:myname/my-new-repo.git
Then now A can push a specific commit to the new repo
$ git push neworigin 7300a6130d9447e18a931e898b64eefedea19544:master
Counting objects: 25, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (13/13), done.
Writing objects: 100% (13/13), 1.12 KiB | 0 bytes/s, done.
Total 13 (delta 7), reused 0 (delta 0)
2a94403..7300a61 7300a6130d9447e18a931e898b64eefedea19544 -> master
neworiginrefer to the new URL added just now
7300a6130d9447e18a931e898b64eefedea19544is the commit hash
masteris branch in remote (Bitbucket)