使用apache 配置http协议的git库
来源:互联网 发布:app看漫画软件 编辑:程序博客网 时间:2024/05/21 23:52
使用apache 配置http协议的git库.
在/home/git/目录下创建gitrepo目录,
在gitrepo中创建test.git
进入test.git目录
执行
git init --bare
mv hooks/post-update.sample hooks/post-update
./hooks/post-update
apache配置文件部分,git.conf
DavLockDB "/usr/local/apache/var/DavLock"Alias /git "/home/git/gitrepo"<Directory "/home/git/gitrepo/"> Dav On Options +Indexes +FollowSymLinks Deny from all AuthType Basic AuthName "Git" AuthUserFile "/home/git/gitrepo/user.git" AuthGroupFile "/home/git/gitrepo/group.git" Require valid-user</Directory><Directory "/home/git/gitrepo/test.git/"> Allow from all Order Allow,Deny <Limit GET> Require group testproject-read </Limit> <Limit GET PUT POST DELETE PROPPATCH MKCOL COPY MOVE LOCK UNLOCK> Require group testproject-write </Limit></Directory><Location /git> SetHandler None</Location>
user.git 采用htpasswd生成
group.git内容如下:
testproject-read: jacktestproject-write: john alex
添加本地授权文件,避免每次都提示输入密码:
Win: 添加环境变量HOME=c:/user/jack
在该目录下创建文件_netrc,内容如下
machine www.gitserver.comlogin jackpassword 123456
*unix:在~/目录添加.netrc,内容同上。
0 0
- 使用apache 配置http协议的git库
- git通过http代理使用git协议
- 使用apache配置进行简单的HTTP Basic Authentication
- 【Git】git支持的传输协议:Local+SSH+Git+HTTP
- windows 下配置使用http协议的svn
- Apache: Http的属性配置
- HttpClient—Apache的HTTP 协议工具包
- 配置http协议的svn
- 使用git协议的git 服务器
- Http协议-HttpClient的使用
- Http协议-HttpClient的使用
- c语言socket使用http协议访问apache服务器
- 配置git 通过git://协议进行只读访问, 以及配置本地访问 ,以及通过http 访问
- 配置git 通过git://协议进行只读访问, 以及配置本地访问 ,以及通过http 访问
- git的使用配置
- 配置Git的SSH协议笔记
- 配置IIS和Apache的HTTP压缩
- windows 下的apache http server 配置
- totalcommander命令行参数
- 编译TortoiseSVN1.7源代码笔记
- 为toad或pl/sql developer配置oracle InstantClient客户端
- jetty服务器java.sql.SQLException: Already closed处理
- 手动编译apache 2.4.2和subversion1.7.5
- 使用apache 配置http协议的git库
- 将博客搬至CSDN
- Oracle 10g 数据库的备份和还原
- (2/3/4)-D Sqr/Rects/Cubes/Boxes?
- OCP-1Z0-053-V13.02-42题
- Ubuntu-Python2.7安装 scipy,numpy,matplotlib
- vim map学习[1]
- 我的第三个 USACO Training--Friday the Thirteenth
- ERROR LNK1123的解决方案