【问题标题】:clone succeeded but checkout failed克隆成功但结帐失败
【发布时间】:2014-02-12 05:05:11
【问题描述】:

我试图在工作中克隆一个大型项目。它过去曾奏效。这是我正在使用的一台新机器,我正在使用 Mac 上的终端将它克隆到 Parallels 可以访问它的 /Volumes 文件夹中。以前,我已经在 Windows 上克隆了它,没有问题。

完成后我得到的一个错误是它说,

warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

当我尝试执行 git checkout -f HEAD 时,看起来 git 尝试检查它,但它基本上会通过 VS 解决方案中的不同项目说:

error: unable to create file src/MyProject (File exists)

有没有人遇到过这种情况?是因为我试图克隆到 /Volumes/c/MyProjects/NameOfProject 吗?

提前致谢。

【问题讨论】:

  • "You can inspect what was checked out with 'git status'" 好的:git status 说什么?你的 git 版本是什么?

标签: git visual-studio-2012 parallels


【解决方案1】:

我以前遇到过这个错误。

来自 repo 的文件存在(成功克隆),但它只是未能进行结帐。

删除文件。

【讨论】:

    猜你喜欢
    • 2014-03-29
    • 2017-01-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-04-16
    • 2014-11-17
    • 2011-06-11
    • 1970-01-01
    相关资源
    最近更新 更多