Re: Quick login of git
- From
- Erik Cervin Edin <erik@cervined.in>
- Date
- Dec 28, 2021, 17:15 UTC
- Message-ID
- <CA+JQ7M94QXWbFnJfzewqecvETmJC9fVkFAb-+RHFuswj=FdnpA@mail.gmail.com>
- In-Reply-To
- <000801d7fb5b$12ec49f0$38c4ddd0$@nexbridge.com>
> On December 27, 2021 11:07 AM zhiyiren2009-subscription wrote: > Why not add a quick login method like VSCode and CLion in git? Login > to > GitHub/ GitLab with one click, without privete key.
I believe you're referring to this? https://code.visualstudio.com/docs/editor/github#_authenticating-with-an-existing-repository
This is using PATs, so the same authentication can be used in CLI.
I recall seeing a github login window when I was playing around with https authentication in Git for Windows. Not sure what happens if you login through that as I quit that window. I believe the default credential helper already saves username/password for https remotes.
It should be noted that many prefer to authenticate using ssh-keys but ssh isn't viable for all remotes/environments :/