网站大量收购独家精品文档,联系QQ:2885784924

手把手创建GitServer.doc

  1. 1、本文档共6页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 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

文档评论(0)

xy88118 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档