简体   繁体   中英

How to install and configure git on a shared hosting?

因此,我一直在网上搜索如何在共享主机上安装git,但我仍然不知道。

Get The latest vesion of git from following location https://github.com/git/git/releases

Logged into your hosting and in your home folder, run the following commands..

 curl -O http://github.com/git/git/archive/v1.8.3.3.tar.gz(put the latest vesion of git) tar zxvf git-1.8.3.3.tar.gz cd git-1.8.3.3 ./configure --prefix=/home/$USER --with-curl --with-expat make -i make -i install echo 'PATH=$PATH:$HOME/bin' >> $HOME/.bashrc source $HOME/.bashrc 

Then type git version it will give git version 1.8.3

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM