Install git and yumgit in yum
This method is effective for RHEL, Fedora, and CentOS:
1. yum install git
2. yum istall git-svn git-email git-gui gitk
How to install Git
If you are in a Unix-based system, you can Download its source code from the Git official website Git Download Page and run the following commands to install it:
$ Make prefix =/usr all; # as yourself
$ Make prefix =/usr install; # Run with root permission
You need some libraries: expat, curl, zlib, and openssl. In addition to expat, other libraries may be installed on your machine.
2. Linux platform
If you are using Linux, you can use your native package management system to install it.
$ Yum install git-core
# Note: yum is used in redhat and other systems.
$ Apt-get install git-core
# Note: apt-get is used in debian, ubuntu, and other systems.
If the above command does not work, you can download the. deb or. rpm package from the following two sites:
RPM PackagesStableDebs if you are interested in installing from the source code in Linux, the following article may help you: InstallingGit on Ubuntu
3. Mac 10.4 Platform
In Mac10.4 and 10.5, if you have installed MacPorts
You can install Git through MacPorts. If you have not installed MacPort,
You can install it from here.
After installing MacPorts, run the following command to install MacPorts:
$ Sudo port install git-core
If you want to install it from the source code, the following articles may help you: InstallingGit on TigerInstallingGit and git-svn on Tiger from source
4. MACOs 10.5
In the Leopard System (Mac 10.5), you can also install it through MacPorts, but you have a new option: a beautiful installation package, which you can download from here: GitOSX Installer
If you want to start installation from the source code, I hope the following materials will help you: InstallingGit on OSX LeopardInstallingGit on OS 10.5
5. Windows Platform
Installing Git in Windows is simple. You only need to download msysGit to install it.
Do I not need to install git if I have installed guthub?
But git bash is easier to understand.