zbirenbaum / copilot.lua

Fully featured & enhanced replacement for copilot.vim complete with API for interacting with Github Copilot
MIT License
2.45k stars 67 forks source link

How to logout or change github account? #169

Closed jiu-chen closed 1 year ago

jiu-chen commented 1 year ago

Hi,

I login a wrong account by ":Copilot auth", I want to change to a new github account, I tried a lot of ways, including uninstall the plugin, all of them do not work.

Now everytime I type ":Copilot auth", it show "Authenticated as GitHub user: jiu-chen", but I want to use my other github accout which has copilot license.

Please kindly tell me how to loggout the github account.

Thanks.

MunifTanjim commented 1 year ago
image

:Copilot auth signout

All the commands are available via autocomplete.


Or delete ~/.config/github-copilot/hosts.json, that's the file where copilot stores the auth info.


Ref: https://github.com/zbirenbaum/copilot.lua/discussions/120