自从升级到了ml,GIT无效了,我晕啊,怎么办?跑到code.google.com上面,却发现,居然只有snowleopard版的git,这可让人怎么办啊。
问群里,回复说直接:brew install git就完事了。有这么简单?
于是直接运行brew install git。告诉我Brew是不存在的问题。
google了一下,原来有一句简单的命令:
- sudo su
- curl -L http://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C /usr/local
一下子就安装完了。。
然后brew install git :
bash-3.2# brew install git
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
==> Downloading http://git-core.googlecode.com/files/git-1.7.11.4.tar.gz
######################################################################## 100.0%
==> make prefix=/usr/local/Cellar/git/1.7.11.4 CC=/Developer/usr/bin/llvm-gcc CFLAGS=-Os -w -pipe -march=core2 -msse4 -mmacosx-version-min=10.8 LDFLAGS=-L/usr/local/lib install
GIT_VERSION = 1.7.11.4
* new build flags or prefix
。。。。。
Over