在git rebase origin/development以下错误消息从git显示:
fatal: refusing to merge unrelated histories
Error redoing merge 1234deadbeef1234deadbeef
Run Code Online (Sandbox Code Playgroud)
我的git版本是2.9.0.用于在以前的版本中正常工作.
如何通过新版本中引入的强制标记继续使用此rebase,从而允许不相关的历史记录?
我目前使用Heroku进行rails托管,它使用Git存储库进行部署.我还有一个托管的Git存储库,我将其用作历史/备份目的的主要源代码控制.我想有一个本地文件夹,其中包含我的应用程序的工作副本,然后能够在需要时将我的更改提交到Heroku存储库或我的托管存储库.
我该怎么做呢?(请注意,我熟悉Team System如何进行源代码控制,对Git来说很新)
当我将远程存储库添加为上游并尝试获取它时,它会失败,如下所示:
$ git fetch upstream
remote: Counting objects: 11901, done.
remote: aborting due to possible repository corruption on the remote side.
error: pack-objects died of signal 9
error: git upload-pack: git-pack-objects died with error.
fatal: git upload-pack: aborting due to possible repository corruption on the re
mote side.
fatal: protocol error: bad pack header
Run Code Online (Sandbox Code Playgroud)
我知道它由于存储库中存在大量文件而失败(我们确实有),但为什么克隆相同的存储库时它不会失败?因为我能够成功克隆存储库.不应该在克隆请求时打包相同的对象吗?