1
Add the other repository as another remote (upstream maybe?) and then do a git rebase to pull that code into your repository. See this article for more information: https://www.openshift.com/kb/kb-e1006-sync-new-git-repo-with-your-own-existing-git-repo
Source:stackexchange.com