Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/sass/front-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
color: white;
}

.github-link {
.git-repo-link {
background: transparent;
color: var(--font-color);
border: 1px solid var(--base-border-color);
Expand Down
4 changes: 4 additions & 0 deletions assets/sass/typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -377,3 +377,7 @@ div.more {
.text-center {
text-align: center;
}
ul.no-bullet {
list-style: none;
margin-left: 0;
}
15 changes: 6 additions & 9 deletions content/install/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@
- /install.html
---

<div id="main">
{{< install-header >}}
{{< install-header >}}

<div class="install-content">
<p class="install-overview">
Choose your operating system above.
</p>
</div>
</div>
</div>
<p class="install-overview">
Choose your operating system above.
</p>

{{< /install-header >}}
83 changes: 39 additions & 44 deletions content/install/linux.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,61 +6,56 @@
- /downloads/linux
---

<div id="main">
{{< install-header "linux" >}}
{{< install-header "linux" >}}
<p>
It is easiest to install Git on Linux with your distribution's package
manager.
</p>
<h3>Debian/Ubuntu</h3>
<p>For the latest stable version for your release of Debian/Ubuntu</p>
<code># apt-get install git</code>
<p>For Ubuntu, this PPA provides the latest stable upstream Git version</p>
<code># add-apt-repository ppa:git-core/ppa</code><br>
<code># apt update; apt install git</code>

<div class="install-content">
<p>
It is easiest to install Git on Linux with your distribution's package
manager.
</p>
<h3>Debian/Ubuntu</h3>
<p>For the latest stable version for your release of Debian/Ubuntu</p>
<code># apt-get install git</code>
<p>For Ubuntu, this PPA provides the latest stable upstream Git version</p>
<code># add-apt-repository ppa:git-core/ppa</code><br>
<code># apt update; apt install git</code>
<h3>Fedora</h3>
<code># yum install git</code> (up to Fedora 21)<br>
<code># dnf install git</code> (Fedora 22 and later)

<h3>Fedora</h3>
<code># yum install git</code> (up to Fedora 21)<br>
<code># dnf install git</code> (Fedora 22 and later)
<h3>Gentoo</h3>
<code># emerge --ask --verbose dev-vcs/git</code>

<h3>Gentoo</h3>
<code># emerge --ask --verbose dev-vcs/git</code>
<h3>Arch Linux</h3>
<code># pacman -S git</code>

<h3>Arch Linux</h3>
<code># pacman -S git</code>
<h3>openSUSE</h3>
<code># zypper install git</code>

<h3>openSUSE</h3>
<code># zypper install git</code>
<h3>Mageia</h3>
<code># urpmi git</code>

<h3>Mageia</h3>
<code># urpmi git</code>
<h3>Nix/NixOS</h3>
<code># nix-env -i git</code>

<h3>Nix/NixOS</h3>
<code># nix-env -i git</code>
<h3>FreeBSD</h3>
<code># pkg install git</code>

<h3>FreeBSD</h3>
<code># pkg install git</code>
<h3>Solaris 9/10/11 (<a href="https://www.opencsw.org">OpenCSW</a>)</h3>
<code># pkgutil -i git</code>

<h3>Solaris 9/10/11 (<a href="https://www.opencsw.org">OpenCSW</a>)</h3>
<code># pkgutil -i git</code>
<h3>Solaris 11 Express, OpenIndiana</h3>
<code># pkg install developer/versioning/git</code>

<h3>Solaris 11 Express, OpenIndiana</h3>
<code># pkg install developer/versioning/git</code>
<h3>OpenBSD</h3>
<code># pkg_add git</code>

<h3>OpenBSD</h3>
<code># pkg_add git</code>
<h3>Alpine</h3>
<code>$ apk add git</code>

<h3>Alpine</h3>
<code>$ apk add git</code>
<h3>Red Hat Enterprise Linux, Oracle Linux, CentOS, Scientific Linux, et al.</h3>
<p>RHEL and derivatives typically ship older versions of git. You can <a href="https://www.kernel.org/pub/software/scm/git/">download a tarball</a> and build from source, or use a 3rd-party repository such as <a href="https://ius.io/">the IUS Community Project</a> to obtain a more recent version of git.</p>

<h3>Red Hat Enterprise Linux, Oracle Linux, CentOS, Scientific Linux, et al.</h3>
<p>RHEL and derivatives typically ship older versions of git. You can <a href="https://www.kernel.org/pub/software/scm/git/">download a tarball</a> and build from source, or use a 3rd-party repository such as <a href="https://ius.io/">the IUS Community Project</a> to obtain a more recent version of git.</p>
<h3>Slitaz</h3>
<code>$ tazpkg get-install git</code>

<h3>Slitaz</h3>
<code>$ tazpkg get-install git</code>

</div>
</div>
</div>
{{< /install-header >}}
67 changes: 38 additions & 29 deletions content/install/mac.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,50 @@
- /downloads/mac
---

<div id="main">
{{< install-header "mac" >}}
{{< install-header "mac" >}}

<div class="install-content">
<p>There are several options for installing Git on macOS. Note that
<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>
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>
<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>
<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>
<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.
<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>
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>
{{< /install-header >}}
31 changes: 21 additions & 10 deletions content/install/source.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,29 @@
title: "Git - Build from Source"
---

<div id="main">
{{< install-header "source" >}}

<div class="install-content">

<p>If you prefer to build from source, you can find tarballs
{{< install-header "source" >}}
<h3>Tarballs</h3>
<p>To build from source, you can find tarballs
<a href="https://www.kernel.org/pub/software/scm/git/">on kernel.org</a>.
The latest version is
<a href="https://www.kernel.org/pub/software/scm/git/git-{{< site-param "latest_version" >}}.tar.gz">{{< site-param "latest_version" >}}</a>.
</p>
<p>There's also an official <a href="https://github.com/git/git">GitHub mirror</a>.</p>

</div>
</div>
</div>
<h3>Browse source</h3>
<p>To browse the source repository, you can visit:
<ul>
<li><a href="https://git.kernel.org/pub/scm/git/git.git">git.kernel.org/pub/scm/git/git.git</a></li>
<li><a href="https://github.com/git/git">github.com/git/git</a></li>
<li><a href="https://gitlab.com/git-scm/git">gitlab.com/git-scm/git</a></li>
</ul>
</p>

<h3>Git clone</h3>
<p>If you already have a version of Git installed, you can clone the Git repository:
<ul class="no-bullet">
<li><code>$ git clone https://git.kernel.org/pub/scm/git/git.git</code></li>
<li><code>$ git clone https://github.com/git/git.git</code></li>
<li><code>$ git clone https://gitlab.com/git-scm/jxgit.git</code></li>
</ul>
</p>
{{< /install-header >}}
122 changes: 59 additions & 63 deletions content/install/windows.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,79 +7,75 @@
- /install/win
---

<div id="main">
{{< install-header "windows" >}}
{{< install-header "windows" >}}

<div class="install-content">
<p>
<p>
<strong><a id="auto-download-link" href="{{< site-param windows_installer.installer_x64.url >}}">Click here to download </a></strong>
the latest (<strong id="auto-download-version">{{< site-param windows_installer.installer_x64.version >}}</strong>)
<strong id="auto-download-architecture">x64</strong> version of <strong>Git for Windows</strong>.
This is the most recent <a href="https://git-for-windows.github.io/">maintained build</a>.
It was released <span id="relative-release-date"></span>on <span id="auto-download-date">{{< site-param windows_installer.installer_x64.release_date >}}</span>.
</p>
<h3>Other Git for Windows downloads</h3>
<h4>Standalone Installer</h4>
<p>
<strong><a href="{{< site-param windows_installer.installer_x64.url >}}">Git for Windows/x64 Setup</a>.</strong>
</p>
<p>
<strong><a href="{{< site-param windows_installer.installer_arm64.url >}}">Git for Windows/ARM64 Setup</a>.</strong>
</p>
<h4>Portable ("thumbdrive edition")</h4>
<p>
<strong><a href="{{< site-param windows_installer.portable_x64.url >}}">Git for Windows/x64 Portable</a>.</strong>
</p>
<p>
<strong><a href="{{< site-param windows_installer.portable_arm64.url >}}">Git for Windows/ARM64 Portable</a>.</strong>
</p>
<h4>Using winget tool</h4>
<p>
Install <a href="https://docs.microsoft.com/en-us/windows/package-manager/winget">winget tool</a> if you don't already have it, then type this command in command prompt or Powershell.<br>
<code>winget install --id Git.Git -e --source winget</code>
<br/>
<strong>Note</strong>: The <code>Git.Git</code> package in winget is <i><b>not</b></i> maintained by the Git for Windows project and might deviate from the latest official version.
</p>
<h4>Using Chocolatey</h4>
<p>
Install <a href="https://chocolatey.org/">Chocolatey</a> if you don't already have it, then run:<br>
<code>choco install git</code>
<br/>
<strong>Note</strong>: The <code>git</code> package in Chocolatey is <i><b>not</b></i> maintained by the Git for Windows project and might deviate from the latest official version.
</p>
<p class="small">
The current source code release is version <strong>{{< site-param latest_version >}}</strong>.
If you want the newer version, you can build it from <a href="https://github.com/git-for-windows/git">the source code</a>.
</p>
the latest (<strong id="auto-download-version">{{< site-param windows_installer.installer_x64.version >}}</strong>)
<strong id="auto-download-architecture">x64</strong> version of <strong>Git for Windows</strong>.
This is the most recent <a href="https://git-for-windows.github.io/">maintained build</a>.
It was released <span id="relative-release-date"></span>on <span id="auto-download-date">{{< site-param windows_installer.installer_x64.release_date >}}</span>.
</p>
<h3>Other Git for Windows downloads</h3>
<h4>Standalone Installer</h4>
<p>
<strong><a href="{{< site-param windows_installer.installer_x64.url >}}">Git for Windows/x64 Setup</a>.</strong>
</p>
<p>
<strong><a href="{{< site-param windows_installer.installer_arm64.url >}}">Git for Windows/ARM64 Setup</a>.</strong>
</p>
<h4>Portable ("thumbdrive edition")</h4>
<p>
<strong><a href="{{< site-param windows_installer.portable_x64.url >}}">Git for Windows/x64 Portable</a>.</strong>
</p>
<p>
<strong><a href="{{< site-param windows_installer.portable_arm64.url >}}">Git for Windows/ARM64 Portable</a>.</strong>
</p>
<h4>Using winget tool</h4>
<p>
Install <a href="https://docs.microsoft.com/en-us/windows/package-manager/winget">winget tool</a> if you don't already have it, then type this command in command prompt or Powershell.<br>
<code>winget install --id Git.Git -e --source winget</code>
<br/>
<strong>Note</strong>: The <code>Git.Git</code> package in winget is <i><b>not</b></i> maintained by the Git for Windows project and might deviate from the latest official version.
</p>
<h4>Using Chocolatey</h4>
<p>
Install <a href="https://chocolatey.org/">Chocolatey</a> if you don't already have it, then run:<br>
<code>choco install git</code>
<br/>
<strong>Note</strong>: The <code>git</code> package in Chocolatey is <i><b>not</b></i> maintained by the Git for Windows project and might deviate from the latest official version.
</p>
<p class="small">
The current source code release is version <strong>{{< site-param latest_version >}}</strong>.
If you want the newer version, you can build it from <a href="https://github.com/git-for-windows/git">the source code</a>.
</p>

<h2>Now What?</h2>
<p>
Now that you have downloaded Git, it's time to start using it.
</p>
<ul id="download-next-steps">
<li>
<a href="{{< relurl "book" >}}">
<h2>Now What?</h2>
<p>
Now that you have downloaded Git, it's time to start using it.
</p>
<ul id="download-next-steps">
<li>
<a href="{{< relurl "book" >}}">
<img src="{{< relurl "images/icons/nav-read-book.png" >}}" />
<h3>Read the Book</h3>
<p>Dive into the Pro Git book and learn at your own pace.</p>
</a>
</li>
<li>
<a href="{{< relurl "downloads/guis" >}}">
</a>
</li>
<li>
<a href="{{< relurl "downloads/guis" >}}">
<img src="{{< relurl "images/icons/nav-download-gui.png" >}}" />
<h3>Download a GUI</h3>
<p>Several free and commercial GUI tools are available for the Windows platform.</p>
</a>
</li>
<li>
<a href="{{< relurl "community" >}}">
</a>
</li>
<li>
<a href="{{< relurl "community" >}}">
<img src="{{< relurl "images/icons/nav-get-involved.png" >}}" />
<h3>Get Involved</h3>
<p>A knowledgeable Git community is available to answer your questions.</p>
</a>
</li>
</ul>
</a>
</li>
</ul>

</div>
</div>
</div>
{{< /install-header >}}
Loading
Loading