git服务器配置
来源:互联网 发布:管家婆数据库搬移工具 编辑:程序博客网 时间:2024/04/27 05:08
git服务器http配置
1,配置apache服务器(假定目录在gitFile)
2,终端执行
cd ~/local/gitFile *定位至apache目录
mkdir myproject.git
cd myproject.git
git init --bare *创建仓库
完成以上步骤可以在浏览器中访问http://localhost/~username/gitFile/Myproject.git/
可以查看到git的一些文件(head branches info等)
3,终端执行
cd ~/local/gitFile/myproject.git
mv hooks/post-update.sample hooks/post-update
a+x hooks/post-update
./hooks/post-update
完成以上步骤可以在终端中测试git仓库是否创建成功
终端执行git clone http://localhost/~username/gitFile/Myproject.git/ 查看是否创建成功(一步步来肯定是成功的哈)
4,此时git还不具备commit权限
在 etc/extra/conf/httpd.conf 中取消#Include conf/extra/httpd-dav.conf 中的#
在conf/extra/httpd-dav.conf中修改
DavLockDB "/usr/var/DavLock"
Alias /git "/usr/fileGit"
Alias /uploads "/usr/uploads"
<Directory "/usr/fileGit">
Dav On
Options +Indexes +FollowSymLinks
AllowOverride None
Order Allow,Deny
Allow from all
AuthType Basic
AuthName "Git"
AuthUserFile "user/user.git"
Require valid-user
</Directory>
5,http配置完成了。
- git服务器的配置
- git windows服务器配置
- Git的服务器配置
- Redhat配置git 服务器
- git服务器配置
- 配置git服务器
- git 服务器配置
- git客户/服务器配置
- git配置两个服务器
- git服务器配置
- Git服务器 - 配置
- Git 服务器 配置
- 服务器配置git
- Git服务器配置
- windows git 服务器配置
- Linux git服务器搭建 配置IDEA git
- Mac 下配置 Git 服务器
- ubuntu上配置git服务器
- PYthon 批量下载网页图片
- Java学习(九)重载和重写
- 一个Windows C++的线程池的实现
- 第九周 结果预测六
- 编写递归函数求出N的阶乘
- git服务器配置
- CoreData使用笔记 之 增删改查
- 思科telnet配置
- Reachability 网络连接
- android L arm64 kernel image压缩、解压
- MFC获取系统的进程及列表控件使用
- Java学习(十)基本数据类型的包装类
- C++调用C# COM组件
- IP路由选择过程