我创建了一个如此处描述的令牌 - https://help.github.com/articles/git-over-http-using-oauth-token。这没关系。
但是当我想像在文档中一样使用它时:
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 文档中尝试的所有内容都不起作用:(我做错了什么,或者文档已过时,或者没有描述一些应该很常见以至于我应该已经知道的步骤?:)
我使用的是私有存储库,而不是公共存储库。
问题是我在范围部分中使用我的存储库名称而不是单词 repo 创建了令牌。