关于Git

1. 安装 msysgit   https://git-for-windows.github.io/    一路next

2. 支持中文

① 添加 set meta-flag on

E:studyInstallPathGitetcinputrc

 ② 添加  alias ls="ls --show-control-chars"  ls不是原生的ls,而是

E:studyInstallPathGitetcinputrc

3. git安装,在linux上搭建git的server,大致有如下几种方式

① git daemon

② ssh

③ http

④ 使用gitosis/gitolite搭建

4. 在RHEL5.5上安装配置Git服务器,如果是注册版本,非常简单,直接使用yum去安装就好,如y

yum install git

5. 在RHEL5.5上通过源码安装配置Git服务器,去下面链接,下载最新源码,然后在服务器上解压

https://github.com/git/git/releases

make prefix=/usr/common/git all
make prefix=/usr/common/git install

6. 把安装后Git的bin路径添加到系统的path里面去

7. 然后创建一个文件夹,用来做git的资源仓库,然后在里面创建工程的文件夹,比如:

mkdir gitrepo

8. 然后进入到工程的文件夹,用Git命令创建一个空的仓库,如下

git init  --bare

9. 然后客户端就可以通过ssh来连接了,链接URI形如:

ssh://root@192.168.1.102:22/usr/common/gitrepo/project1
原文地址:https://www.cnblogs.com/an5211/p/7065768.html