Installing git (OSX)

本文提供了几种在OSX上安装Git的方法,包括使用预编译的安装程序、MacPorts以及手动编译。通过这些步骤,用户可以轻松地将Git集成到他们的开发环境中。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

Installing git (OSX)

http://help.github.com/mac-git-installation/

There are a number of methods to install git on OSX . This guide details the most common methods.

Pre-compiled Installer

Download and run git-osx-installer

MacPorts

  1. Install MacPorts if you haven’t already done so.
  2. Make sure your ports are up to date.
  3. Install Git (You may want to include Subversion support if you want to import SVN repositories)
$ sudo port selfupdate

MacPorts base version 1.600 installed
Downloaded MacPorts base version 1.600

The MacPorts installation is not outdated and so was not updated
selfupdate done!

$ sudo port install git-core +svn
--->  Installing curl 7.18.2_0
--->  Activating curl 7.18.2_0
--->  Installing openssh 5.0p1_0+darwin_9
--->  Activating openssh 5.0p1_0+darwin_9
--->  Installing p5-error 0.17012_0
--->  Activating p5-error 0.17012_0
--->  Installing popt 1.13_0
--->  Activating popt 1.13_0
--->  Installing rsync 3.0.2_0
--->  Activating rsync 3.0.2_0
--->  Installing git-core 1.5.5.3_0+doc
--->  Activating git-core 1.5.5.3_0+doc

Compiling git manually

See compiling and installing git on mac os x .

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值