Cocoapods/git的“分离头"状态 [英] Cocoapods/git 'detached HEAD' state

查看:62
本文介绍了Cocoapods/git的“分离头"状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

have an issue with cocoapods/git. I'm trying to add new pod to the project and get the following issue. The point is a team member didnt get the issue when he tried to add the Pod to the project. Tried to reinstall/update cocoapods, git, delete and re-clone a repo. I've installed previous SDK version and everything fine, but the latest is failed

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'

推荐答案

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

The problem has been solved with following steps:

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

这篇关于Cocoapods/git的“分离头"状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆