Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to install the latest version of CentOS git

Shulou Source: shulou.com Published: 2022-05-31 13:25:40 10月04日 Update

The knowledge of this article "the latest version of CentOS git how to install" is not understood by most people, so the editor summarizes the following contents, detailed contents, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "the latest version of CentOS git how to install" article.

The git version that comes with CentOS6.5 is 1.7.1

Uninstall git that comes with it

# yum remove git

Download the latest version of git

# wget https://github.com/git/git/archive/v2.9.2.tar.gz

Decompression

# tar zxvf v2.9.2.tar.gz

# cd git-2.9.2

Compilation and installation

# make configure

#. / configure-prefix=/usr/local/git-with-iconv=/usr/local/libiconv

# make all doc

# sudo make install install-doc install-html

Modify environment variabl

# sudo vim / etc/profile

Add on the last line

Export PATH=/usr/local/git/bin:$PATH

Save it and make it effective immediately.

# source / etc/profile

Check to see if the installation is successful

# git-version

Modify git pointing in pycharm

File- > Settings- > Version Control- > Git- > Path to Git executable:

Select / usr/local/git/bin/git

The above is about the content of this article on "how to install the latest version of CentOS git". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.

Tags: Content version article knowledge article success line value variable most that is point to more latest version step environment knowledge point industry information information channel Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL macOS MariaDB Linux Xiaomi