windows - 远程 : fatal: unresolved deltas left after unpacking

标签 windows git networking

我在窗口环境中工作,我在网络上有一个远程 git 存储库。 创建使用

git init --bare

然后我将项目克隆到我的本地,我可以对其进行提交和推送。 但是有那么一刻,我无法再推送了,出现以下错误:

Counting objects: 21, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (19/19), done.
Writing objects: 100% (21/21), 1.93 KiB | 0 bytes/s, done.
Total 21 (delta 15), reused 0 (delta 0)
remote: error: object directory /SERVER/Apps/myApp.git/objects does not exist; check .git/objects/info/alternates.
remote: fatal: unresolved deltas left after unpacking
error: unpack failed: unpack-objects abnormal exit
To //SERVER/Apps/myApp.git
 ! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to '//SERVER/Apps/myApp.git'

所以我尝试创建另一个 repo 并且发生了同样的事情......

您是否知道此错误是如何发生的以及如何修复它? 谢谢

编辑

core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
diff.astextplain.textconv=astextplain
rebase.autosquash=true
credential.helper=manager
user.name=Flim
user.email=flim@myMail.com
alias.tree=log --oneline --decorate --all --graph
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
remote.origin.url=//SERVER/Apps/myApp.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master

最佳答案

太近了!这将在即将发布的 Git 2.12(2017 年第一季度)中得到修复。
参见“Git push fail to a Windows share

normalize_path_copy() is not prepared to keep the double-slash of a //server/share/dir kind of path, but treats it like a regular POSIX style path and transforms it to /server/share/dir.

所以它第一次工作,然后注册了错误的路径,然后就不再工作了。

作为目前的解决方法,看看您是否可以将该共享路径映射到驱动器号。

net use z: \\SERVER\Apps

参见“Map network drive command line”。
然后将该路径用作您的远程 origin url。

cd C:\path\to\my\local\repo
git remote set-url origin Z:\myApp.git

关于windows - 远程 : fatal: unresolved deltas left after unpacking,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41630392/

相关文章:

php - 如何使用 exec() 从 php 推送 git

git - 在存储库中运行 Docker

cocoa - 如何获取当前网络位置名称?

python - 使用 Pysal 在 map 中绘制线段

c - 将相同的套接字 fd 两次添加到 fd_set 然后调用 select

c - 当我按下某个键时做些什么?

c# - 编译基于 C# 的 Windows (WinForms App) 应用程序以在 Mac OS High Sierra 或 Mojave 上运行

适用于 Linux 的 Windows 资源编辑器

git - 将 git repo 中的所有文件替换为本地计算机上的文件

git - 自动 rebase gerrit 更改