从Github克隆问题 [英] Issues cloning from Github

查看:187
本文介绍了从Github克隆问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图克隆或从git中拉出时,我收到了这个奇怪的错误信息。奇怪的是,我和一位同事以前没有问题。然后,我们又有两个团队成员克隆了存储库,现在突然间我和前一位同事继续得到这些错误。这两个新人没有问题拉/推动和克隆。突然间,两位原来的团队成员不能做任何事情。



我无法想象这两位新成员可能会修改或更改什么,我们只是在做直截了当的事情在这一刻。

 克隆到测试中... 
输入密码短语是否可能是GitHub和之前的团队成员帐户的问题?对于'/c/Users/Rob/.ssh/id_rsa'键:
remote:计数对象:8685,完成。
remote:压缩对象:100%(3737/3737),完成。
remote:总计8685(delta 5005),重复使用8490(delta 4810)
接收对象:100%(8685/8685),239.92 MiB | 158 KiB / s,完成。
解决三角洲问题:完成100%(5005/5005)。
错误:refs / remotes / origin / master没有指向有效的对象!
错误:尝试写入具有不敏感对象的ref refs / heads / master 3cad1d0fb95b397ae8ed4826e29073362e135e2f
致命:无法更新ref'HEAD'。
取消文件'test / .git / objects / pack / pack-9bca633d2527e271701b07f92128b15a6396277a.idx'的链接失败。我应该再试一次吗? (y / n)

更新:我只是尝试在github上设置一个新帐户,再次,但同样的问题,我想它缩小到我可能在github上的某种全局设置。 解决方案

结果是git客户端出现了一个奇怪的错误,我重新安装了,之后一切正常。


I'm getting this strange error message when trying to clone or pull from git. The strange thing is that me and a colleague previously had no issues with this. We then got two other team members to clone the repository and now suddenly me and the previous colleague continue to get these errors. The two new guys have no problem pulling/pushing and cloning. Suddenly the two original team members can't do anything.

I can't imagine what the two new members might have modified or changed, we're just doing straightforward things at the moment. Is it possibly an issue with GitHub and the previous team members accounts?

Cloning into test...
Enter passphrase for key '/c/Users/Rob/.ssh/id_rsa':
remote: Counting objects: 8685, done.
remote: Compressing objects: 100% (3737/3737), done.
remote: Total 8685 (delta 5005), reused 8490 (delta 4810)
Receiving objects: 100% (8685/8685), 239.92 MiB | 158 KiB/s, done.
Resolving deltas: 100% (5005/5005), done.
error: refs/remotes/origin/master does not point to a valid object!
error: Trying to write ref refs/heads/master with nonexistant object 3cad1d0fb95b397ae8ed4826e29073362e135e2f
fatal: Cannot update the ref 'HEAD'.
Unlink of file 'test/.git/objects/pack/pack-9bca633d2527e271701b07f92128b15a6396277a.idx' failed. Should I try again? (y/n)

UPDATE: I just tried setting up a new account on github and tried to clone again, but same issues, which I guess narrows it down to some kind of global setting I might have on github.

解决方案

This ended up being a strange error with the git client, I re-installed and everything worked fine after that.

这篇关于从Github克隆问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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