相关疑难解决方法(0)

没有这样的桶:/ usr/local/Cellar/git

几个小时我一直在努力.我在使用Yosemite的Mac上.我安装了自制软件,并且使用git就好了.我试过了$git add -i,我收到了这个错误:

无法在@INC中找到Git.pm(@INC包含:

所以我按照这里的说明操作: 无法在@INC中找到Git.pm

$brew uninstall git工作得很好,但在我试图$brew install git陷入可怕的循环之后.

% brew install git

Error: git-git already installed
To install this version, first `brew unlink git'
% brew unlink git
Error: No such keg: /usr/local/Cellar/git
% brew link git
Error: No such keg: /usr/local/Cellar/git
% git --version
git version 1.9.3 (Apple Git-50)
% brew upgrade git
==> Upgrading 1 outdated package, with result:
git 2.2.2
Error: /usr/local/Library/LinkedKegs/git is not a valid keg
% brew …
Run Code Online (Sandbox Code Playgroud)

git macos homebrew

32
推荐指数
3
解决办法
8万
查看次数

警告:您的git版本是1.9.3.有严重的安全漏洞

在部署到Heroku期间,我收到了关于git 1.9.3严重安全漏洞的警告

我尝试通过自制软件更新git,但发现git最初并不是通过自制软件安装的

然后我通过自制软件安装它

brew update
brew install git

==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/git-2.2.1.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring git-2.2.1.mavericks.bottle.tar.gz
==> Caveats
The OS X keychain credential helper has been installed to:
/usr/local/bin/git-credential-osxkeychain

The "contrib" directory has been installed to:
/usr/local/share/git-core/contrib

Bash completion has been installed to:
/usr/local/etc/bash_completion.d

zsh completion has been installed to:
/usr/local/share/zsh/site-functions
==> Summary
  /usr/local/Cellar/git/2.2.1: 1356 files, 31M
Run Code Online (Sandbox Code Playgroud)

之后,当我检查git版本时,它保持不变

?  git --version   
git version 1.9.3 (Apple Git-50)    
Run Code Online (Sandbox Code Playgroud)

在我看来自制的安装git在文件夹/usr/local/Cellar/git/2.2.1中

最后我的问题是:我应该怎样做才能开始使用自制的git而不是原来的git

git security macos homebrew heroku

7
推荐指数
2
解决办法
3808
查看次数

标签 统计

git ×2

homebrew ×2

macos ×2

heroku ×1

security ×1