安装
- linux下常见发行版安装
# Debian/Ubuntu
$ apt-get install git
# Fedora
$ yum install git # up to Fedora 21 or: yum install git-all
$ 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
# FreeBSD
$ pkg install git
# Solaris 9/10/11 [OpenCSW](https://www.opencsw.org/)
$ pkgutil -i git
# Solaris 11 Express
$ pkg install developer/versioning/git
# OpenBSD
$ pkg_add git
# Alpine
$ apk add git
- windows (略)
3.mac (略)
配置
通常只需要配置用户和邮箱即可
$ git config --global user.name test
$ git config --global user.email test@qq.com
参考
https://git-scm.com/download/linux