首页 > git服务器搭建

git服务器搭建

各位老师好啊,近期想要搭建一个git服务器托管代码 通过http传输方式 要用到apached。由于项目比较小不需要有用户管理功能,但是参照网上的教程,对于apached做了如下的设置

当按照如下步骤操作后,git push 无法成功
git init --bare project.git
cd project.git
git init
git add .
git commit -a -m 'origin create'
git remote add origin http://127.0.0.1/git/project.git
git push origin master
chown -R apache:apache . 主要是git仓库一定要改成apache
第一次创建git server,git client提交有错误,在git server上配置如下命令
git config receive.denyCurrentBranch ignore
错误提示是
git push origin master 有以下错误
fatal: unable to access 'http://127.0.0.1/git/test/': The requested URL returned error: 403

请教各位老师,给点指导阿。。


建议 GOGS 我们现在使用这个还不错,安装很方便。只需要运行一个脚本,什么都不用管了。其他的都是在页面按照form 表单一个一个的填写就行。


你加入服务器地址是不是少写就一个斜杠

【热门文章】
【热门文章】