【发布时间】:2016-11-13 21:47:37
【问题描述】:
我已经将一个 repo 复制到一个较新的 repo 中,但是在新 repo 上执行 git clone 时,它无法使用 LFS 指针下载文件,并且在使用 smudge 时出现错误... 例如...“下载对象时出错。在服务器上找不到对象”
步骤:
git clone --bare https://github.com/myuser/old-repo.git
cd old-repository.git
git push --mirror https://github.com/myuser/new-repo.git
git clone https://github.com/myuser/new-repo.git
[error.....git-lfs.exe smudge --- somefile.....Error downloading object]
分支和提交历史看起来不错,但 LFS 无法下载所需的文件。使用 git-lfs 时还有其他方法吗?
【问题讨论】:
-
你找到答案了吗?我正在尝试做同样的事情,目前看来我必须在保留项目历史或继续使用 LFS 之间做出选择。我宁愿不必做出这样的选择。
标签: git github github-for-windows git-lfs