- Choose your operating system above. -
-From 22675f4707e307361921405aa7eb8d1c9b0e49c2 Mon Sep 17 00:00:00 2001
From: Toon Claes
- Choose your operating system above.
-
+ Choose your operating system above.
+
+ It is easiest to install Git on Linux with your distribution's package
+ manager.
+ For the latest stable version for your release of Debian/Ubuntu For Ubuntu, this PPA provides the latest stable upstream Git version
- It is easiest to install Git on Linux with your distribution's package
- manager.
- For the latest stable version for your release of Debian/Ubuntu For Ubuntu, this PPA provides the latest stable upstream Git version RHEL and derivatives typically ship older versions of git. You can download a tarball and build from source, or use a 3rd-party repository such as the IUS Community Project to obtain a more recent version of git. RHEL and derivatives typically ship older versions of git. You can download a tarball and build from source, or use a 3rd-party repository such as the IUS Community Project to obtain a more recent version of git. There are several options for installing Git on macOS. Note that
+
+ 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. Choose one of the following options for installing Git on macOS:
+ Choose one of the following options for installing Git on macOS:
+ Install homebrew if you don't already have it, then:
+ Install homebrew if you don't already have it, then: Install MacPorts if you don't already have it, then:
+ Install MacPorts if you don't already have it, then: Apple ships a binary package of Git with Xcode Command Line
- Tools. You can install this via: Tim Harper provided an installer for Git until version 2.33.0 / 2021.
+
+ Apple ships a binary package of Git with
+ Xcode Command Line Tools.
+ You can install this via:
+ 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. If you would like to install git-gui and gitk,
- git's commit GUI and interactive history browser, you can do so using homebrewDebian/Ubuntu
+# apt-get install git
+# add-apt-repository ppa:git-core/ppa
+# apt update; apt install git
- Debian/Ubuntu
- # apt-get install git
- # add-apt-repository ppa:git-core/ppa
- # apt update; apt install git
+Fedora
+# yum install git (up to Fedora 21)
+# dnf install git (Fedora 22 and later)
- Fedora
- # yum install git (up to Fedora 21)
- # dnf install git (Fedora 22 and later)
+Gentoo
+# emerge --ask --verbose dev-vcs/git
- Gentoo
- # emerge --ask --verbose dev-vcs/git
+Arch Linux
+# pacman -S git
- Arch Linux
- # pacman -S git
+openSUSE
+# zypper install git
- openSUSE
- # zypper install git
+Mageia
+# urpmi git
- Mageia
- # urpmi git
+Nix/NixOS
+# nix-env -i git
- Nix/NixOS
- # nix-env -i git
+FreeBSD
+# pkg install git
- FreeBSD
- # pkg install git
+Solaris 9/10/11 (OpenCSW)
+# pkgutil -i git
- Solaris 9/10/11 (OpenCSW)
- # pkgutil -i git
+Solaris 11 Express, OpenIndiana
+# pkg install developer/versioning/git
- Solaris 11 Express, OpenIndiana
- # pkg install developer/versioning/git
+OpenBSD
+# pkg_add git
- OpenBSD
- # pkg_add git
+Alpine
+$ apk add git
- Alpine
- $ apk add git
+Red Hat Enterprise Linux, Oracle Linux, CentOS, Scientific Linux, et al.
+Red Hat Enterprise Linux, Oracle Linux, CentOS, Scientific Linux, et al.
- Slitaz
+$ tazpkg get-install git
- Slitaz
- $ tazpkg get-install git
-
- Homebrew
-
+Homebrew
+
$ brew install gitMacPorts
-
+MacPorts
+
$ sudo port install gitXcode Command Line Tools
-
- $ xcode-select --installBinary installer
- Xcode Command Line Tools
+
+ $ xcode-select --install
+Binary installer
+Installing git-gui
-
-
- $ brew install git-gui
+ If you would like to install git-gui
+ and gitk,
+ git's commit GUI and interactive history browser,
+ you can do so using homebrew
+
+ $ brew install git-gui
+
+
Click here to download - the latest ({{< site-param windows_installer.installer_x64.version >}}) - x64 version of Git for Windows. - This is the most recent maintained build. - It was released on {{< site-param windows_installer.installer_x64.release_date >}}. -
-- Git for Windows/x64 Setup. -
-- Git for Windows/ARM64 Setup. -
-- Git for Windows/x64 Portable. -
-- Git for Windows/ARM64 Portable. -
-
- Install winget tool if you don't already have it, then type this command in command prompt or Powershell.
- winget install --id Git.Git -e --source winget
-
- Note: The Git.Git package in winget is not maintained by the Git for Windows project and might deviate from the latest official version.
-
- Install Chocolatey if you don't already have it, then run:
- choco install git
-
- Note: The git package in Chocolatey is not maintained by the Git for Windows project and might deviate from the latest official version.
-
- The current source code release is version {{< site-param latest_version >}}. - If you want the newer version, you can build it from the source code. -
+ the latest ({{< site-param windows_installer.installer_x64.version >}}) + x64 version of Git for Windows. + This is the most recent maintained build. + It was released on {{< site-param windows_installer.installer_x64.release_date >}}. + ++ Git for Windows/x64 Setup. +
++ Git for Windows/ARM64 Setup. +
++ Git for Windows/x64 Portable. +
++ Git for Windows/ARM64 Portable. +
+
+ Install winget tool if you don't already have it, then type this command in command prompt or Powershell.
+ winget install --id Git.Git -e --source winget
+
+ Note: The Git.Git package in winget is not maintained by the Git for Windows project and might deviate from the latest official version.
+
+ Install Chocolatey if you don't already have it, then run:
+ choco install git
+
+ Note: The git package in Chocolatey is not maintained by the Git for Windows project and might deviate from the latest official version.
+
+ The current source code release is version {{< site-param latest_version >}}. + If you want the newer version, you can build it from the source code. +
-- Now that you have downloaded Git, it's time to start using it. -
-+ Now that you have downloaded Git, it's time to start using it. +
+Dive into the Pro Git book and learn at your own pace.
- -Several free and commercial GUI tools are available for the Windows platform.
- -A knowledgeable Git community is available to answer your questions.
- -If you prefer to build from source, you can find tarballs +{{< install-header "source" >}} +
To build from source, you can find tarballs on kernel.org. The latest version is }}.tar.gz">{{< site-param "latest_version" >}}.
-There's also an official GitHub mirror.
-To browse the source repository, you can visit: +
+ + +If you already have a version of Git installed, you can clone the Git repository: +
$ git clone https://git.kernel.org/pub/scm/git/git.git$ git clone https://github.com/git/git.git$ git clone https://gitlab.com/git-scm/jxgit.git