On 2021-12-28 at 17:15:26, Erik Cervin Edin wrote: > > 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. Git for Windows ships with the default credential helper as Git Credential Manager Core, which will try to log in to some of the most popular services with a native token. However, this is not a part of core Git. Folks who would like to use this credential manager are welcome to do so, in which case it will work for some services, but there's no way to automatically do this in the general case, because it isn't guaranteed that a Git server provides an automatic way to get a token. For example, my personal Git server uses only Kerberos authentication and doesn't issue tokens of any sort. -- brian m. carlson (he/him or they/them) Toronto, Ontario, CA