-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand file tree
/
Copy pathmac.html
More file actions
46 lines (36 loc) · 1.6 KB
/
mac.html
File metadata and controls
46 lines (36 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
section: "install"
title: "Git - Install for macOS"
aliases:
- /download/mac
- /downloads/mac
---
<div id="main">
{{< install-header "mac" >}}
<div class="install-content">
<p>There are several options for installing Git on macOS. Note that
any non-source distributions are provided by third parties, and may
not be up to date with the latest source release.</p>
<p><b>Choose one of the following options for installing Git on macOS:</b></p>
<h3>Homebrew</h3>
<p>Install <a href="https://brew.sh/">homebrew</a> if you don't already have it, then:<br>
<code>$ brew install git</code></p>
<h3>MacPorts</h3>
<p>Install <a href="https://www.macports.org">MacPorts</a> if you don't already have it, then:<br>
<code>$ sudo port install git</code></p>
<h3>Xcode Command Line Tools</h3>
<p>Apple ships a binary package of Git with <a
href="https://developer.apple.com/xcode/resources/">Xcode Command Line
Tools</a>. You can install this via:<br>
<code>$ xcode-select --install</code></p>
<h3>Binary installer</h3>
<p>Tim Harper provided an installer for Git until version 2.33.0 / 2021.
These installers are no longer linked from here because there are no updates
since that version, nor are there plans to provide any.</p>
<h3>Installing git-gui</h3>
<p>If you would like to install <a href="https://git-scm.com/docs/git-gui/">git-gui</a> and <a href="https://git-scm.com/docs/gitk/">gitk</a>,
git's commit GUI and interactive history browser, you can do so using <a href="https://brew.sh/">homebrew</a><br>
<code>$ brew install git-gui</code></p>
</div>
</div>
</div>