天天看點

Git倉庫配置

安裝git依賴包

yum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker           

源碼安裝

wget https://github.com/git/git/archive/v2.7.4.zip
unzip v2.7.4.zip
cd git-2.7.4
make prefix=/usr/local/git all
make prefix=/usr/local/git install
rm -rf /usr/bin/git
ln -s /usr/local/git/bin/git /usr/bin/git
git --version           

初始化git

mkdir /git/
cd /git/
git init
git config --glabal user.name "testder"
git config --global user.email [email protected]
git config --list
           

繼續閱讀