How can I “login” to git?

You don’t login to Git.

You do login to a Git repository hosting server, which request an authentication, but Git itself has no authentication nor authorization.

(As an example of Git repository hosting service offering login:

  • GitHub: gh auth login
  • GitLab: glab auth login)

What Git does have is credential caching (check the output of git config credential helper).
On Mac: “Updating credentials from the OSX Keychain”: you can check if your old user was stored there, and update it.

If you really want to disable the credential helper, you will be asked your credentials every time you push to a repository hosted on a server requesting authentication.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)