CentOS7 搭建Git服务器

安装Git

yum -y install git

查看Git版本

git --version

创建Git目录和一个空的Git仓库

cd /
mkdir git
cd git
git init –bare test.git
chown -R git:git test.git

一个简单的Git服务器就搭建完成了

Windows下运行git bash

git clone git@ip:/git/test.git
cd test
git remote -v

Donate
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.

扫一扫,分享到微信

微信分享二维码
  • Copyrights © 2022 Mr.Yao
  • Visitors: | Views:

请我喝杯咖啡吧~

支付宝
微信