需要用户名密码的访问,网上已经有人分享了, 如果想看,需要用户名密码的访问请出门右转
https://www.cnblogs.com/badwood316/p/6398616.html
这里的配置是一种不需要用户名密码,同时可以glone的方式
git仓库集合所在的地址是 /var/www/html/git-repository.
在 /etc/httpd/conf/httpd.conf 结尾加入下面配置
<VirtualHost *:80>
SetEnv GIT_PROJECT_ROOT /var/www/html/git-repository/
SetEnv GIT_HTTP_EXPORT_ALL
ScriptAlias /git-repository/ /usr/libexec/git-core/git-http-backend/
<Directory "/usr/libexec/git-core*">
Options ExecCGI Indexes
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost >
博客介绍了一种无需用户名密码即可访问并克隆Git仓库的方式。网上有需用户名密码访问的分享,可查看指定链接。此配置中,Git仓库集合地址为 /var/www/html/git-repository ,并需在结尾加入特定配置。
570

被折叠的 条评论
为什么被折叠?



