Cocoapods / git的“分离头”状态

时间:2019-03-13 10:25:55

标签: ios git cocoapods

cocoapods / git有问题。 我正在尝试将新的Pod添加到项目中,并遇到以下问题。关键是团队成员在尝试将Pod添加到项目时没有遇到问题。 试图重新安装/更新cocoapods,git,删除并重新克隆存储库。 我已经安装了以前的SDK版本,并且一切正常,但是最新的版本失败了

Installing RescueSDK 4.0.1

[!] Error installing RescueSDK
[!] /usr/local/bin/git clone https://github.com/LogmeinRescue/iOS-SDK.git /var/folders/sp/59sclxxd21590rgz5bvwf8zw0000gn/T/d20190313-28582-12gul24 --template= --single-branch --depth 1 --branch 4.0.1

Cloning into '/var/folders/sp/59sclxxd21590rgz5bvwf8zw0000gn/T/d20190313-28582-12gul24'...
Note: checking out '913aeaa7da9a1b2140525154bfc2beefde5f4214'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

git-lfs filter-process: git-lfs: command not found
fatal: the remote end hung up unexpectedly
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'

1 个答案:

答案 0 :(得分:1)

该问题已通过以下步骤解决:

  • 卸载git
  • 删除git配置文件
  • 安装git
  • ....
  • 利润