免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1777 | 回复: 0
打印 上一主题 下一主题

[其他] git push origin master 无法在管理员客户端创建远程的仓库 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-11-27 15:11 |只看该作者 |倒序浏览
自己搭建git服务器时
执行git push origin master一直报如下错误:
fatal: 'teamwork.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

我就是想在管理员的客户端,创建一个仓库到服务器上,比如我的teamwork本地仓库,服务器上本部存在,为啥不能自动创建呢
哥哥们,求教啊!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

gitosis配置如下:
[gitosis]

[group gitosis-admin]
writable = gitosis-admin
members = uroot@centosacli

[group jay-fans]
writable = git-test
members = uroot@centosacli jay

[group teamwork]
writable = teamwork
members = uroot@centosacli



全局配置,如下:
[uroot@centosacli teamwork]$ git config --list
user.name=uroot@centosacli
user.email=uroot@centosacli
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=git@192.168.1.112:teamwork.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*

下面这个命令的全路径也试过:
git remote add origin git@192.168.1.112:teamwork.git
但都提示相同的错误






您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP