【发布时间】:2014-01-06 01:06:46
【问题描述】:
我正在关注Luke Jones' article on setting up a local server,我目前正在尝试在 Mavericks 上使用 git 设置自制程序。在安装自制软件之前,我已经安装了 git。我遇到了一个与this question 类似的问题,但是当我尝试运行brew link git 时,我收到了以下错误:
Error: Could not symlink file: /usr/local/Cellar/git/1.8.5.1/share/git-core/templates/info/exclude
Target /usr/local/share/git-core/templates/info/exclude 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
我的/etc/paths:
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
which git 返回/usr/bin/git
which brew 返回/usr/local/bin/brew
不确定是什么问题,因为我仍然不擅长解决此类问题。有人知道接下来要采取的步骤吗?
【问题讨论】:
标签: git terminal homebrew osx-mavericks