git push:“错误:权限不足,无法将对象添加到存储库数据库./objects" [英] git push: "error: insufficient permission for adding an object to repository database ./objects"

查看:897
本文介绍了git push:“错误:权限不足,无法将对象添加到存储库数据库./objects"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是的,我知道,这件事以前曾在这里发生,我已经看过问题了. git push给了我这个:

Yeah, I know, this thing has been on here before, I've seen the questions. git push gives me this:

错误:没有足够权限将对象添加到存储库数据库./objects

error: insufficient permission for adding an object to repository database ./objects

我只有一个问题:这是关于本地或服务器端存储库数据库的错误吗?

I have just one question: Is this error regarding the local or the server-side repository database?

为什么我是开发人员中唯一遇到此错误的人?

And why am I the only one getting this error among the developers?

(我问这个问题是因为我的服务器人员不想让我相信这是服务器端的问题)

(I'm asking this question because my server guy doesn't want to believe me that this is a server-side problem)

好的,这是长版:

两个用户已将一个代表拉到他们的工作区中.

Two users have pulled a rep into their workspace.

  1. 用户2进行了一些更改.
  2. 用户1进行更改,提交,然后拉出要合并的用户2的更改.
  3. 用户1尝试进行推送,但得到了以下提示:

  1. User 2 pushes some change.
  2. User 1 changes something, commits, then pulls the change of User 2 to be merged.
  3. User 1 tries to push, but gets this:

git.exe push --progress"origin" dev:dev

git.exe push --progress "origin" dev:dev

计数对象:18,完成. 压缩对象:100%(10/10) 书写对象:100%(10/10) 写入对象:100%(10/10),870字节,已完成. 总计10(增量6),重用0(增量0) 错误:没有足够权限将对象添加到存储库数据库./objects

Counting objects: 18, done. Compressing objects: 100% (10/10) Writing objects: 100% (10/10) Writing objects: 100% (10/10), 870 bytes, done. Total 10 (delta 6), reused 0 (delta 0) error: insufficient permission for adding an object to repository database ./objects

致命:无法写入对象 错误:解压失败:解压对象异常退出 到git @ XXX:twf ! [远程拒绝] dev-> dev(不适用(拆包错误)) 错误:无法将一些引用推送到'git @ XXX:twf'

fatal: failed to write object error: unpack failed: unpack-objects abnormal exit To git@XXX:twf ! [remote rejected] dev -> dev (n/a (unpacker error)) error: failed to push some refs to 'git@XXX:twf'

git不能干净退出(退出代码1)

git did not exit cleanly (exit code 1)

推荐答案

也许我没有收到您的问题,但是...您是对的,当然,这里有几个完全相同的问题.让我们检查这个 ,例如:

Perhaps I didn't get your question, but... you're right, of course, there are several questions asked here about exactly the same. Let's check this one, for example:

通常,此问题是由错误的用户和组权限引起的 您的 git服务器文件系统.

Usually this problem is caused by wrong user and group permissions on your git servers file-system.

更新:无论如何,要检查应该归咎于谁实际上是很容易的-您的本地环境还是服务器环境.让其他开发人员(而不是用户2 !)进行与您所做的完全相同的更新(更新相同的文件;考虑到您的报告,这不会太难),然后尝试从他/她的计算机上git push这些更新.

UPDATE: anyway, it's actually quite easy to make the check who is to blame - your local environment or the server's one. Let some other developer (but not user 2!) to make exactly the same update that you did (update the same files you did; it won't be too hard, considering your report), then try to git push these updates from his/her machine.

这篇关于git push:“错误:权限不足,无法将对象添加到存储库数据库./objects"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆