git fork,但只有最新的提交

时间:2018-02-25 14:08:18

标签: git

我正在尝试做一个存储库的分支,但只是最新的提交。 虽然遥控器说未知提交

以下是我正在尝试的内容:git clone -v --bare --depth 1 --single-branch --shallow-submodules https://githost1/repo

这有效,我只看到一次提交。

然后我git push --mirror --porcelain --no-verify https://githost2/repo,我得到remote: Unknown commit f401f2a20cdbe71f93f66f45400e417e38f58f15

任何线索?

0 个答案:

没有答案