How to merge git commits from other remote origin
- Add the remote
git remote add <new_remote> <url>
- Create a new branch tracking that remote
git checkout -b <new_branch> --track <new_remote>/main
- Cherry-pick the commits you want
git cherry-pick <commit_hash_old>^..<commit_hash_new>
- Resolve any conflicts and continue
git cherry-pick --continue
All done!