Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Github令牌不起作用?_Github - Fatal编程技术网

Github令牌不起作用?

Github令牌不起作用?,github,Github,我创建了一个令牌,如下所述-。这还可以 但当我想在文档中使用它时: git clone https://mytoken@github.com/mylogin/myrepo.git 我得到: fatal: https://mytoken@github.com/mylogin/myrepo.git/info/refs not found: did you run git update-server-info on the server? 我觉得我在Github文档中尝试的一切都不起作用:(我做错

我创建了一个令牌,如下所述-。这还可以

但当我想在文档中使用它时:

git clone https://mytoken@github.com/mylogin/myrepo.git
我得到:

fatal: https://mytoken@github.com/mylogin/myrepo.git/info/refs not found: did you run git update-server-info on the server?
我觉得我在Github文档中尝试的一切都不起作用:(我做错了什么,或者文档已经过时,或者没有描述一些我应该已经知道的非常常见的步骤?:)


我使用的是私有存储库,而不是公共存储库。

问题是我在scopes部分使用存储库名称而不是repo一词创建了令牌。

您是否仔细检查了用户名或git repo名称中是否存在任何大小写错误(小写或大写)?是的,我确定。如果我删除令牌,它会询问我的用户名和密码,这是有效的。但我需要将其自动化(我不想将明文密码存储在某个地方)。令牌的scopes部分与我的存储库名称相对应,因此我没有看到任何可能不正确的内容。有趣的是:正如我在上面所评论的,与repo名称相关的排序存在错误,而不仅仅是我心目中的错误。很好的反馈+1是的,当我发送错误的参数时,他们的API没有返回错误代码,所以看起来对我来说还行。我联系了支持人员,他们说他们会让文档更清晰,他们应该返回一些错误代码,但我没有测试,因为回复后,可能现在已经修复了。