Installing GIT on OS-X In 3 Minutes

本文提供了一个快速在OS X上安装Git的方法,通过下载源文件并使用命令行进行配置和编译安装,最后预配置用户名和邮箱。

How to install GIT on OS-X in under 5 minutes:

curl http://kernel.org/pub/software/scm/git/git-1.7.1.tar.gz -O tar xzvf git-1.7.1.tar.gz cd git-1.7.1 make configure  ./configure --prefix=/usr/local NO_MSGFMT=yes make prefix=/usr/local all sudo make install 

Git should be installed on your OS-X now, which you can verify by issuing: git --version command in Terminal. However, it's a good idea to also pre-configure the default username and e-mail for your Git installation:

git config --global user.name "Your Firstname Lastname"  git config --global user.email "username@example.com" git config --global --list 

I personally, also like to set:

git config --global color.ui "auto"

转载于:https://www.cnblogs.com/kamome/archive/2011/02/22/1961207.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值