【问题标题】:git error "failed to push some refs to" when accessing windows share访问 Windows 共享时出现 git 错误“无法将某些引用推送到”
【发布时间】:2013-09-30 13:17:38
【问题描述】:

当我尝试将我的 repo 推送到已安装的 Windows 共享时,我收到以下错误消息:

git push
Counting objects: 47, done.
Compressing objects: 100% (15/15), done.
Writing objects: 100% (25/25), 508.09 KiB | 88 KiB/s, done.
Total 25 (delta 18), reused 13 (delta 7)
fatal: error when closing sha1 file: Host is down
error: unpack failed: unpack-objects abnormal exit
To /dir/
 ! [remote rejected] master -> master (n/a (unpacker error))
error: failed to push some refs to /dir/

我尝试了很多在其他帖子上找到的东西,但它们对我不起作用:

git gc
git repack
git config --add core.sharedRepository group

我也更改了文件权限:

-rwxrwxrwx 0 marc marc 156 Sep 30 14:51 config
-rwxrwxrwx 0 marc marc  73 Apr 20  2012 description
-rwxrwxrwx 0 marc marc  23 Apr 20  2012 HEAD
drwxrwxrwx 0 marc marc   0 Apr 20  2012 hooks
drwxrwxrwx 0 marc marc   0 Apr 20  2012 info
drwxrwxrwx 0 marc marc   0 Sep 24 16:26 objects
drwxrwxrwx 0 marc marc   0 Apr 20  2012 refs

驱动器上还有足够的空间。

【问题讨论】:

  • 确定错误:您是否尝试推送到另一个本地文件夹(不是远程挂载)?那样有用吗?如果可行并且问题(可能)与挂载的共享有关,请更详细地描述共享。

标签: git git-push cifs


【解决方案1】:

似乎此错误是由 Ubuntu 12.4 LTS 的标准 apt 存储库中的 git 版本引起的。从另一个仓库安装更新版本后,它可以工作

 sudo add-apt-repository ppa:git-core/ppa
 sudo apt-get update
 sudo apt-get upgrade

【讨论】:

    猜你喜欢
    • 2023-02-08
    • 2012-05-31
    • 2020-03-04
    • 2023-03-16
    • 2016-12-30
    • 1970-01-01
    • 1970-01-01
    • 2014-07-29
    • 2012-06-12
    相关资源
    最近更新 更多