How to properly push one git repository over another on codebasehq?

随声附和 提交于 2019-12-08 19:19:29
Nils Werner

You could try the following:

  • git clone OLDREPO
  • git remote add new NEWREPO
  • git fetch new

Your old history should now be in master while your new history is in new/master

  • git checkout new/master
  • git rebase -i master

This will start an interactive rebase that transplants everything from new/master onto master. Since you probably want to drop the first commit from your new code (the one that was a simple copy of the work at that time) you should delete the according line in the editor that will be shown to you. The rest should be set to pick.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!