Install Git for Linux and Unix

Download for Linux and Unix

It is easiest to install Git on Linux using the preferred package manager of your Linux distribution.

Debian/Ubuntu

# apt-get install git

Fedora

# yum install git

Gentoo

# emerge --ask --verbose dev-vcs/git

Arch Linux

# pacman -S git

FreeBSD

# cd /usr/ports/devel/git
# make install

Solaris 11 Express

# pkg install developer/versioning/git

OpenBSD

# pkg_add git

————————————— 在平常人眼里,我是个高手; 在高手眼里,我是个平常人。 ————————————— ~~Manager
原文地址:https://www.cnblogs.com/peishuanglin/p/linuxer.html