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  # (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

FreeBSD

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

Solaris 11 Express

$ pkg install developer/versioning/git

OpenBSD

$ pkg_add git

 

Copied from: http://git-scm.com/download/linux

相关文章:

  • 2021-09-22
  • 2021-04-18
  • 2021-06-25
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2021-08-28
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-22
  • 2021-10-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-30
相关资源
相似解决方案