Install Git on the Windows and Linux side

Source: Internet
Author: User

one, the installation of Git   1. On the Windows side

To address: https://git-scm.com/downloads

Select the corresponding version of the download, the installation can be a fool

2. On the Linux side

Check to see if Git is installed, which is not installed

If it is not already installed, download the installation package

wget https://www.kernel.org/pub/software/scm/git/git-2.8.3.tar.gz

Then unzip the package and switch to the GIT package

TAR-ZXVF Git-2.8.3.tar. gzcd git-2.8.3

Configure the path of a git installation

./configure prefix=/usr/local/git/

Compiling and installing

Make && make install

If the following error occurs

    CC Credential-store.  file included from credential-store.c:1:0:cachefile#  Include <zlib.h>                  ^compilation terminated.  Make: * * * [CREDENTIAL-STORE.O] Error 1

If the installation tool is missing, first use the Yum installation tool

Yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
Yum Install gcc perl-extutils-makemaker

That is, you can compile the installation to check if the installation was successful

Git--version

If it appears that the installation was successful

    

Install Git on the Windows and Linux side

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.