配置Windows下的Git 服务器简易教程
2012-11-10 17:57
369 查看
下载
msysGit
TortoiseGit
WampServer2
配置Git
配置Apache
修改httpd.conf :
在 httpd.conf 文件末尾追加:
添加用户
切换到 Apache 安装目录下的 bin目录
创建代码仓库
客户端
使用TortoiseGit clonegit add .
git commit -m "Add"
git push origin master
msysGit
TortoiseGit
WampServer2
配置Git
cd C:\Program Files\Git\libexec\git-core copy C:\Program Files\Git\bin\libiconv-2.dll git-http-backend.exe
配置Apache
修改httpd.conf :
<directory /> Options FollowSymLinks AllowOverride None Order deny,allow Allow from all </directory>
在 httpd.conf 文件末尾追加:
# Set this to the root folder containing your Git repositories. SetEnv GIT_PROJECT_ROOT E:/SvnServer # Set this to export all projects by default (by default, # git will only publish those repositories that contain a # file named “git-daemon-export-ok” SetEnv GIT_HTTP_EXPORT_ALL 1 # Route specific URLS matching this regular expression to the git http server. ScriptAliasMatch \ “(?x)^/git/(.*/(HEAD | \ info/refs | \ objects/(info/[^/]+ | \ [0-9a-f]{2}/[0-9a-f]{38} | \ pack/pack-[0-9a-f]{40}\.(pack|idx)) | \ git-(upload|receive)-pack))$” \ “C:/Program Files/Git/libexec/git-core/git-http-backend.exe/$1″ <Location /> AuthType Basic AuthName “GIT Server AuthUserFile “E:/SvnServer/htpassword” Require valid-user </Location>
添加用户
切换到 Apache 安装目录下的 bin目录
htpasswd -cmb E:/SvnServer/htpassword mythma 123456
创建代码仓库
cd E:\GitServer git init --bare mythma.git git update-server-info
客户端
使用TortoiseGit clonegit add .
git commit -m "Add"
git push origin master
相关文章推荐
- 配置Windows下的Git 服务器简易教程
- 配置Windows下的Git 服务器简易教程
- windows下配置Git服务器
- Windows平台使用Gitblit搭建Git服务器图文教程
- Windows下配置Git服务器和客户端 超全
- Apache 服务器最新版下载、安装及配置教程图解(Windows版)
- Windows平台使用Gitblit搭建Git服务器图文教程
- Git初步配置 ubuntu服务器 windows客户端 虚拟机
- Windows平台使用Gitblit搭建Git服务器图文教程
- Windows平台使用Gitblit搭建Git服务器图文教程
- windows下配置svn服务器的简易记录
- Windows下配置Git服务器和客户端
- Windows平台下搭建Git服务器的图文教程
- WINDOWS(XP)下使用copSSH配置GIT服务器
- Windows Git+TortoiseGit简易使用教程
- CruiseControl 安装 配置 教程 实例 搭建服务器 (CruiseControl + git/svn)