ios - Cocoapods/git 'detached HEAD' 状态

标签 ios git cocoapods

cocoapods/git 有问题。 我正在尝试向项目添加新的 pod 并遇到以下问题。关键是团队成员在尝试将 Pod 添加到项目时没有遇到问题。 尝试重新安装/更新 cocoapods、git、删除并重新克隆一个 repo。 我已经安装了以前的 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'

最佳答案

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

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

关于ios - Cocoapods/git 'detached HEAD' 状态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55139581/

相关文章:

ipad - 核心数据示例,无效更新 : invalid number of rows in section 0

ios - CryptoSwift + CryptoJS 在 Swift 2.3 中生成错误的 JSON

Git 强制推送 : how to prevent overriding other user's changes

git - 如何使用Composer进行浅克隆?

ios - 本地 CocoaPods 干扰其他 pod

ios - 后台模式下的 HKObserverQuery

ios - 使用 AFNetworking 加载图像的 UICollectionView 滚动性能

git - 如何使 git diff 将文件视为二进制_仅有时_

ios - 创建 Podfile 返回错误消息

ios - Cocoapods:如何使用最新的 Swift 版本创建一个 pod?