![](/img/trans.png)
[英]How to assign Project to GHI or Hub (Github) Issue in CommandLine?
[英]Github commandline GHI authentication error
我正在尝试对我的 repo 使用 ghi,我尝试了多种方法来设置 ghi 配置,但都没有奏效。 我尝试过的一些事情:
git config --global github.user <username>
& git config --global github.token <token>
ghi config --auth <username>
命令来设置身份验证。以上都没有奏效。
当我做
$ ghi -vv config --auth <username> ===> POST /authorizations {"scopes":["public_repo","repo"],"note":"ghi on <name-mbp.domain>","note_url":"https://github.com/stephencelis/ghi"} <=== 401: {"message":"Bad credentials","documentation_url":"https://developer.github.com/v3"} ✔ Bad credentials
所以我注意到的一件事是 Documentation_url 是终点? 我将如何将该网址编辑为我的终点?
问题已解决,看起来 ghi 可以通过 2FA 与您的 github 一起使用,我只需要以下两个 git 配置:
git config github.host <your github host>
git config ghi.token <your personal access token>
在尝试ghi config --auth <username>
,我仍然收到Bad credentials
,但ghi list
有效。 我认为使用令牌,则不再需要用户名和密码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.