简体   繁体   English

如何在共享主机上安装和配置git?

[英]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 从以下位置获取最新版本的git 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 然后输入git version它会给git版本1.8.3

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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