git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Quick login of git

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Dec 28, 2021, 18:49 UTC
Message-ID
<YctcOTeJUrBraa9M@camp.crustytoothpaste.net>
In-Reply-To
<CA+JQ7M94QXWbFnJfzewqecvETmJC9fVkFAb-+RHFuswj=FdnpA@mail.gmail.com>
On 2021-12-28 at 17:15:26, Erik Cervin Edin wrote:
Show 16 quoted lines
> > 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
Previous: Erik Cervin Edin
Message 10 of 10 in “Quick login of git”
  1. zhiyiren2009-subscriptionDec 27, 2021
  2. rsbecker@nexbridge.comDec 27, 2021
  3. zhiyiren2009-subscriptionDec 27, 2021
  4. rsbecker@nexbridge.comDec 27, 2021
  5. zhiyiren2009-subscriptionDec 27, 2021
  6. rsbecker@nexbridge.comDec 27, 2021
  7. zhiyiren2009-subscriptionDec 28, 2021
  8. zhiyiren2009-subscriptionDec 28, 2021
  9. Erik Cervin EdinDec 28, 2021
  10. brian m. carlsonDec 28, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.