Download Git for Linux | linux git
ItiseasiesttoinstallGitonLinuxusingthepreferredpackagemanagerofyourLinuxdistribution.Ifyouprefertobuildfromsource,youcanfindtarballsonkernel.org[1].Thelatestversionis2.40.0[2].Debian/UbuntuForthelateststableversionforyourreleaseofDebian/Ubuntu#apt-getinstallgitForUbuntu,thisPPAprovidesthelateststableupstreamGitversion#add-apt-repositoryppa:git-core/ppa#aptupdate;aptinstallgitFedora#yuminstallgit(uptoFedora21)#dnfinstallgit(Fedora22andlater)Gentoo#emerge--ask--verbosedev-vcs/gitArchLinux#pacm...
It is easiest to install Git on Linux using the preferred package manager of your Linux distribution. If you prefer to build from source, you can find tarballs on kernel.org[1]. The latest version is 2.40.0[2].
Debian/UbuntuFor the latest stable version for your release of Debian/Ubuntu
# apt-get install gitFor Ubuntu, this PPA provides the latest stable upstream Git version
# 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) Gentoo # emerge --ask --verbose dev-vcs/git Arch Linux # pacman -S git openSUSE # zypper install git Mageia # urpmi git Nix/NixOS # nix-env -i git FreeBSD # pkg install git Solaris 9/10/11 (OpenCSW[3]) # pkgutil -i git Solaris 11 Express # pkg install developer/versioning/git OpenBSD # pkg_add git Alpine $ apk add git Red Hat Enterprise Linux, Oracle L...