Git Clone:不工作(旧的本地回购推/拉工作正常)

时间:2014-07-28 22:27:39

标签: git remote-server

我在我的服务器上为我设置了一个新的仓库,我让它在我的本地机器上进行推/拉。我今天搬到了另一台计算机并试图克隆它,但是把这个错误抛给了我:

MacBook-Pro:htdocs macbook$ git clone myuser@mysite.com:~/opt/git/myrepo.git
Cloning into 'myrepo'...
myuser@mysite.com's password:
remote: Counting objects: 8897, done.
remote: Compressing objects: 100% (7192/7192), done.
Write failed: Broken pipe89/8897), 260.00 KiB | 502.00 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

我在服务器上的git配置:

[core]
    repositoryformatversion = 0
    filemode = true
    bare = true
    sharedrepository = 1
[receive]
    denyNonFastforwards = true
[remote "origin"]
    fetch = +refs/heads/*:ref/remotes/origin/*
    url = ssh://mysshuser@mywebsite.com/~/opt/git/myrepot.git

[branch "master"]
    remote = origin
    merge = refs/heads/master

[branch "develop"]
    remote = origin
    merge = refs/heads/develop

我正在运行git版本1.7.1

1 个答案:

答案 0 :(得分:0)

问题解决了:git版本引发了问题。在服务器上更新为1.8.5以匹配本地计算机版本。