Install Git
It's time to try Git, but install it first. There are many kinds of installation methods, mainly divided into two types, one is to install by compiling the source code, the other is to use the installation package for a specific platform precompiled.
SOURCE Installation
If conditions permit, there are many benefits of installing from source code, at least the latest version can be installed. Every version of Git is constantly trying to improve the user experience, so it's great to be able to compile and install the latest version yourself from the source code. Some Linux versions come with packages that aren't updated in a timely fashion, so unless you're using the latest distro or backports, installing from the source code is the best option.
Git's work calls for code from libraries such as CURL,ZLIB,OPENSSL,EXPAT,LIBICONV, so you need to install these dependent tools first. On systems with Yum (such as Fedora) or systems with apt-get (such as the Debian system), you can install them using the following command:
$ yum Install curl-devel expat-devel gettext-devel OpenSSL-devel zlib-devel$ apt-get Install Libcurl4-gnutls-dev libexpat1-Dev gettext libz-dev Libssl-dev
Then, download the latest version of the source code from the following Git official site:
Http://git-scm.com/download
Then compile and install:
$ tar-zxf git-1.7.2.2. tar.gz$ cd git-1.7.2.2$ make prefix=/usr/local all$ sudo make prefix=/u Sr/local Install
Now you can use the git
command to git
clone the Git project repository locally so that it will be updated at any time in the future:
$ git clone git://git.kernel.org/pub/scm/git/git.git
Kali can be installed quickly with Apt-get:
Apt-get Install git
Debian or Kali install git