- 1、本文档共6页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
手把手创建GitServer
GIT Server
Pre-setup
Download msysgit
Download TortoiseGIT
Download Apache and sspi module. Skip this step if you are not intent to host a git server
Step 1. Install msysgit
Run msysgit installer package.
Set Use Git Bash Only
Dont convert line endings
Step 2. Install TortoiseGIT
Install TortoiseGIT per the standard installer
Open Windows Explorer after installation
Right click on a hard driver and go to TortoiseGIT → Settings
Select Git / Config, input your name. Email address is optional.
Step 3. Install Apache
Run through the installation using the default options so the Apache instance is running on port 80.
Change the port if port 80 is unavailable. This is done by editing httpd.conf in C:\Program Files\Apache Software Foundation\Apache2.2\conf
Search for “Listen”, you’ll find a line like
Listen 80
Replace 80 with a free port number, e.g. 8181
Download SSPI module, copy the file mod_auth_sspi.so into the Apache modules folder (C:\Program Files\Apache Software Foundation\Apache2.2\modules).
Add the following lines to httpd.conf:
IfModule !mod_auth_sspi.c
LoadModule sspi_auth_module modules/mod_auth_sspi.so
/IfModule
# git settings
Include conf/httpd-git.conf
Create a new file httpd-git.conf in C:\Program Files\Apache Software Foundation\Apache2.2\conf. Make sure that GIT_PROJECT_ROOT points to the correct folder.
Directory /
Options +ExecCGI
Allow from all
/Directory
# Set this to the root folder containing your Git repositories.
SetEnv GIT_PROJECT_ROOT E:/
SetEnv GIT_HTTP_EXPORT_ALL
SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER
# Route specific URLS matching this regular expression to the git http server.
ScriptAliasMatch (?x)^/(.*/(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
LocationMatch ^/.*/git-receive-pack$
Options +ExecCGI
AuthName Git repositor
您可能关注的文档
最近下载
- 2025年湖北省襄阳市襄阳四中学初三下学期四月调考化学试题含解析.doc VIP
- GBT 42706.1-2023 电子元器件 半导体器件长期贮存 第1部分:总则.doc
- 2018人教版七年级数学下册练习:期末达标检测卷.docx VIP
- AC-25厂拌热再生沥青混凝土试验段施工方案.doc
- 行业联盟与竞争格局演变-深度研究.pptx
- 2024-2025学年北京西城区九年级初三(上)期末道德与法治试卷(含答案).pdf
- 2025年山东省枣庄市滕州市高三二模物理试卷及答案.docx
- 第九章 压强和浮力(知识清单)【教师版】.docx VIP
- 2025保安员理论考试100题(附答案) .pdf VIP
- 2022年三级教育测试题.docx
文档评论(0)