加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

windows – remote:fatal:解包后留下未解决的增量

发布时间:2020-12-14 04:00:37 所属栏目:Windows 来源:网络整理
导读:我在窗口环境中工作,我在网络上有一个远程git存储库. 使用创建 git init --bare 然后我在我的本地克隆项目,我可以继续提交和推送. 但是,在某个时刻,我不能再推出以下错误: Counting objects: 21,done.Delta compression using up to 4 threads.Compressing
我在窗口环境中工作,我在网络上有一个远程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'

所以我试图创造另一个回购和同样的事情……

你对这个错误是如何发生以及如何修复有任何线索吗?
谢谢

编辑

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: SERVERApps

见“Map network drive command line”.
然后使用该路径作为远程源URL.

cd C:pathtomylocalrepo
git remote set-url origin Z:myApp.git

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读