iis服务器助手广告
返回顶部
首页 > 资讯 > 后端开发 > PHP编程 >使用homebrew 报错:fatal: not in a git directory Error: Command failed with exit 128: git
  • 310
分享到

使用homebrew 报错:fatal: not in a git directory Error: Command failed with exit 128: git

nginxphp 2023-08-31 13:08:39 310人浏览 薄情痞子
摘要

使用homebrew 报错:fatal: not in a git directory Error: Command failed with exit 128: git 提示:关注公众号:小千哥,协

使用homebrew 报错:fatal: not in a git directory Error: Command failed with exit 128: git

提示:关注公众号:小千哥,协助解决各种技术问题!

报错如下:

 ~  brew install NginxWarning: No remote 'origin' in /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask, skipping update!Warning: No remote 'origin' in /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core, skipping update!Warning: No remote 'origin' in /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services, skipping update!==> Homebrew has enabled anonymous aggregate fORMula and cask analytics.Read the analytics documentation (and how to opt-out) here:  https://docs.brew.sh/AnalyticsNo analytics have been recorded yet (nor will be during this `brew` run). ==> Homebrew is run entirely by unpaid volunteers. Please consider donating:  Https://GitHub.com/Homebrew/brew#donationsRunning `brew update --preinstall`...==> Downloading https://mirrors.aliyun.com/homebrew/homebrew-bottles/openssl%401Already downloaded: /Users/sunkeo/Library/Caches/Homebrew/downloads/fc4281b06e29b8c638b7f3b55da7ab003aef9fcb9f92365ca6f2363D3c07fb40--openssl@1.1-1.1.1o.monterey.bottle.tar.gz==> Downloading https://mirrors.aliyun.com/homebrew/homebrew-bottles/nginx-1.21.Already downloaded: /Users/sunkeo/Library/Caches/Homebrew/downloads/5582b7ccc9d76be29176ce182ce68534fb57ac5fa81a8a4f179ee6a0d323b4f8--nginx-1.21.6_1.monterey.bottle.tar.gz==> Installing dependencies for nginx: openssl@1.1==> Installing nginx dependency: openssl@1.1fatal: not in a git directoryError: Command failed with exit 128: git 

解决方式

执行brew -v 命令看看是不是有两个提示,你的 homebrew-core和homebrew-cask目录 被git认为不是一个安全的目录,需要手动添加,关注公众号:小千哥git config --global --add safe.directory 你的homebrew-core路径git config --global --add safe.directory 你的homebrew-cask路径关注公众号:小千哥

来源地址:https://blog.csdn.net/wei9693312/article/details/127690296

--结束END--

本文标题: 使用homebrew 报错:fatal: not in a git directory Error: Command failed with exit 128: git

本文链接: https://www.lsjlt.com/news/385807.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作