0

我正在尝试切换到自制版本的 git,但我收到以下消息:

unknown68a86d401752:~ davidadams$ brew link git
Linking /usr/local/Cellar/git/1.8.4... Warning: Could not link git. Unlinking...

Error: Could not symlink file: /usr/local/Cellar/git/1.8.4/share/zsh/site-functions/git-completion.bash
Target /usr/local/share/zsh/site-functions/git-completion.bash already exists. You may need to delete it.
To force the link and overwrite all other conflicting files, do:
  brew link --overwrite formula_name

To list all files that would be deleted:
  brew link --overwrite --dry-run formula_name

我对 Homebrew 或垃圾箱知之甚少,不知道这是否是安全的建议。

我的目标是开始使用当前版本的 git。终端告诉我以下内容:

unknown68a86d401752:~ davidadams$ which git
/usr/bin/git
unknown68a86d401752:~ davidadams$ git --version
git version 1.7.7.5 (Apple Git-26)
4

1 回答 1

0

好吧,git-completion.bash无论如何可能没有太大变化,但是由于您正在更新git以使用较新版本,因此获取该脚本的较新版本应该没有问题。

于 2013-09-12T04:35:16.647 回答