Installation tutorial for the latest version of CentOS git
- 2020-05-13 04:22:15
- OfStack
CentOS6.5 comes with version 1.7.1 of git
Uninstall the built-in git
# yum remove git
Download the latest version of git
# wget https://github.com/git/git/archive/v2.9.2.tar.gz
Unpack the
# tar zxvf v2.9.2.tar.gz
# cd git-2.9.2
Compile the 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 variables
# sudo vim /etc/profile
Add in the last line
export PATH=/usr/local/git/bin:$PATH
Save for immediate effect
# source /etc/profile
Check to see if the installation was successful
#git --version
Modify the git pointing in pycharm
File-
>
Settings-
>
Version Control-
>
Git-
>
Path to Git executable:
Select/usr local/git/bin/git