Git:无法从一台计算机上推送 [英] Git: Can't push from one computer

查看:232
本文介绍了Git:无法从一台计算机上推送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的一位同事在从他机器上的git推动变更时遇到问题。如果他登录到另一台机器,他可以推得很好 - 但是从他的机器上,当他试图推动时,他会得到以下错误:

One of my coworkers is having a problem pushing changes from git on his machine. If he logs into another machine, he can push just fine - but from his machine, when he tries to push he gets the following error


    D:\Projects\test1\best-practices>git push
    Counting objects: 4, done.
    Compressing objects: 100% (2/2), done.
    Writing objects: 100% (3/3), 273 bytes, done.
    Total 3 (delta 1), reused 0 (delta 0)
    error: unable to create temporary sha1 filename ./objects/42: Permission denied

    fatal: failed to write object
    error: unpack failed: unpacker exited with error code
    To //civ3s012/gitrepos/best-practices/.git
     ! [remote rejected] master -> master (n/a (unpacker error))
    error: failed to push some refs to '//civ3s012/gitrepos/best-practices/.git'

服务器和客户端一样是一台Windows机器。没有其他人有这个问题 - 这似乎是一个服务器权限问题,但我们已经裁定,尽可能我们可以告诉。另外,他可以登录到不同的机器并使用相同的用户名进行推送,这看起来好像不是服务器权限。任何想法可能会在这里出错?

The server is a windows machine, as is the client. No one else is having this problem - it seems to be a server permissions issue, but we've ruled that out as far as we can tell. Also, the fact that he can log into a different machine and push, using the same username, makes it seem like it's not server permissions. Any ideas what could be going wrong here?

推荐答案

我不是一个Windows用户,所以我在黑暗中刺中这里很少。它看起来像挂载了远程文件系统,你只是推着它(不使用ssh://或git://)。 FS是不是只读安装?他可以在那里创建/修改文件(在 git 之外)?

I'm not a windows user so I'm stabbing in the dark a little here. It looks like the remote file system is mounted and you're just pushing to that (not using ssh:// or git://). Is that FS somehow mounted readonly? Can he create/modify files on there (outside of git)?

这篇关于Git:无法从一台计算机上推送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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