如何从HomeBrew中删除浅表克隆警告 [英] How to remove the shallow clone warning from HomeBrew

查看:82
本文介绍了如何从HomeBrew中删除浅表克隆警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

➜  ~ brew info test 
Error: No available formula with the name "test" 
==> Searching for a previously deleted formula...
Warning: homebrew/core is shallow clone. To get complete history run:
  git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.

我之前已将git远程地址修改为镜像自制程序的地址.也许与此有关,但我不知道.

I have modified the git remote address to mirror address of homebrew before. Maybe it's relevant to this but I don't know.

推荐答案

在后台,Homebrew使用Git进行版本控制,并进行了浅表克隆 是一种不包含所有历史记录修订/提交的文件,以提高效率和数据量.

Under the cover Homebrew uses Git for version control, and a shallow clone is one that doesn't contain all history revisions/commits, for efficiency and data volume.

实际上,在大多数情况下,可以安全地忽略警告,因为所搜索的公式可能不可用.

Actually, in most cases the warning can be safely ignored, as the formulae being searched for probably isn't available.

但是,如果您确实要寻找过去可能存在的某些公式,请按照建议进行操作:

But if you're really looking for some formulae which might existed in the past, Just do what it suggests:

要获取完整的历史记录,请运行:

To get complete history run:

git -C "$(brew --repo homebrew/core)" fetch --unshallow

Homebrew可以通过这种方式搜索仅在过去存在但在某个时间点已删除的公式.

This way Homebrew could search for formula that existed only in the past but removed at some point.

这篇关于如何从HomeBrew中删除浅表克隆警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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