我想使用ghi對我的回購,我已經嘗試了多種方式來設置ghi配置,但沒有工作。有些我已經試過的東西:Github的命令行GHI身份驗證錯誤
- 設置環境變量:GITHUB_USER & GITHUG_TOKEN
- 運行
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是終點?我如何編輯該網址作爲我的終點?