在CentOS 6.x上配合Windows客户端搭建 git(gitosis)服务器

一、在 CentOS 上安装 git 和 gitosis:

逐条执行如下语句:

sudo yum install git python-setuptools
cd /opt
sudo git clone https://github.com/res0nat0r/gitosis.git
cd gitosis/
sudo python setup.py install

二、添加 git 用户:

执行如下语句,创建 git 用户,-m参数用于在创建用户的同时,为其创建相应的主目录:

sudo adduser -m git

三、在Windows上安装客户端软件

  1. 下载和安装 msysgit

    到 http://code.google.com/p/msysgit/downloads/list 下载 msysgit,

原文地址:https://www.cnblogs.com/matchless/p/3300057.html