git 在 Github 中找不到 api 令牌

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10418596/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 06:51:54  来源:igfitidea点击:

can't find api token in Github

gitgithub

提问by sha256

I've just installed GitExtension. Everything is configured. When I click on "Clone Github Repository", It opens a dialog box titled "Github Configuration" with following input boxes: 1. User 2. Password 3. APIToken when I click on "Get Api Token" button, It takes me to my github.com profile. But there's no API key in there. I searched for an hour approximately, but couldn't figure out where to find it.

我刚刚安装了 GitExtension。一切都配置好了。当我单击“克隆 Github 存储库”时,它会打开一个标题为“Github 配置”的对话框,其中包含以下输入框: 1. 用户 2. 密码 3. APIToken 当我单击“获取 Api 令牌”按钮时,它会带我到我的github.com 个人资料。但是里面没有 API 密钥。我搜索了大约一个小时,但不知道在哪里可以找到它。

Note: It seems that GitHub recently changed their authentication method! I ain't sure what to do now. Any help would be appreciated..

注意:GitHub 最近似乎更改了他们的身份验证方法!我不知道现在该怎么办。任何帮助,将不胜感激..

采纳答案by anuragbh

API Tokens are not supported by Github anymore https://github.com/blog/1090-github-api-moving-on

Github 不再支持 API 令牌 https://github.com/blog/1090-github-api-moving-on

You do not need the API Token to work with git.

使用 git 不需要 API 令牌。

It might be that GitExtension has not updated their authentication method. There is a command line Git tool for Windows, this will work: http://msysgit.github.com/

可能是 GitExtension 没有更新他们的身份验证方法。有一个适用于 Windows 的命令行 Git 工具,这将起作用:http: //msysgit.github.com/

回答by VonC

API tokens seem to be back since May 2013: "PersonalAPI tokens"
(see your setting page)

API 令牌似乎自 2013 年 5 月起又回来了:“个人API 令牌
(请参阅您的设置页面

The advantage to using a token over putting your password into a script is that a token can be revoked, and you can generate lots of them.

与将密码放入脚本相比,使用令牌的优势在于可以撤销令牌,并且可以生成大量令牌。