🌐
GitHub
github.com › login
Sign in to GitHub
GitHub is where people build software. More than 150 million people use GitHub to discover, fork, and contribute to over 420 million projects.
🌐
GitHub
docs.github.com › en › authentication › keeping-your-account-and-data-secure › verifying-new-devices-when-signing-in
Verifying new devices when signing in - GitHub Docs
The code is valid for one hour. If you have the GitHub Mobile application installed, GitHub sends a verification request to your mobile device, instead of sending an email. Enter the code displayed in your browser into the GitHub Mobile app to verify your sign-in.
🌐
GitHub
docs.github.com › en › authentication › keeping-your-account-and-data-secure › about-authentication-to-github
About authentication to GitHub - GitHub Docs
You can unlink your social login identities from your GitHub email settings page. For more information, see Unlinking your email address from a locked account ... If you enable two-factor authentication (2FA), after you sign in with social login or your username and password, you'll be prompted to enter a code from a time-based one-time password (TOTP) application on your mobile device or sent as a text message (SMS).
🌐
GitHub
docs.github.com › en › apps › creating-github-apps › writing-code-for-a-github-app › building-a-login-with-github-button-with-a-github-app
Building a "Login with GitHub" button with a GitHub App - GitHub Docs
Update the callback handler to call the user_info function and to display the user's name and GitHub login. Remember to replace CALLBACK_URL with the callback URL for your app, minus the domain. ... get "CALLBACK_URL" do code = params["code"] token_data = exchange_code(code) if token_data.key?("access_token") token = token_data["access_token"] user_info = user_info(token) handle = user_info["login"] name = user_info["name"] render = "Successfully authorized!
🌐
Django
code.djangoproject.com › github › login
GitHub Login
GitHub is where people build software. More than 150 million people use GitHub to discover, fork, and contribute to over 420 million projects.
🌐
GitHub
github.com › github-login
github-login - Overview
github-login has one repository available. Follow their code on GitHub.
🌐
GitHub
docs.github.com › en › authentication › authenticating-with-a-passkey › signing-in-with-a-passkey
Signing in with a passkey - GitHub Docs
Navigate to the login page for GitHub at https://github.com/login?passkey=true. Click Sign in with a passkey. Follow the prompts on your browser or platform to select a passkey that is accessible as a nearby device (such as a phone or a tablet).
🌐
GitHub
github.com › signup
Sign up for GitHub
Access to GitHub Copilot Increase your productivity and accelerate software development. Unlimited repositories Collaborate securely on public and private projects. Integrated code reviews Boost code quality with built-in review tools.
🌐
Reddit
reddit.com › r/github › github authentication sign-in
r/github on Reddit: GitHub Authentication Sign-In
June 13, 2025 -

Hello! I am a very rare user of GitHub, simply having a repo to move my D&D notes from desktop to laptop when it's time to play. I've been mainly working on the go, but wanted to get up to date on my new desktop. I re-downloaded git and vs code, and when attempting to get set back up, I was prompted to connect to GitHub. When I opened up my MS authenticator app, my GitHub account was missing. Attempts to recover the account have hit dead ends.

I am still able to use vs code on my laptop to push/pull from the existing repo, but I don't seem to have any way to sign into the account directly to link the desktop. The account recovery option for 'verify this device' is greyed out when using the laptop. I assumed that, since the laptop using vs code can utilize the repo, it would somehow be a verified device. I don't know what the verified device requirements are. I have access to the email account linked to the GitHub account. I didn't know anything about SSH keys or personal access tokens, so they were never set up. And I can't find any record of the recovery codes GitHub promises they sent me.

Do I have any options to log back into the GitHub account? It is likely not a big deal to unlink the email address and GitHub account, since I have my local repo on my laptop and can push it to a new account/repo. I just wanted that to be a last resort. If I have to set up a new GitHub account, is there any way to reuse the account name?

Find elsewhere
🌐
GitHub
github.com › topics › login-system
login-system · GitHub Topics · GitHub
Do you need a PHP login system that rocks? Then install this SSO server.
🌐
DEV Community
dev.to › lovestaco › how-to-integrate-github-sign-in-a-four-step-guide-1doj
How To Integrate GitHub Sign-In: A Four Step Guide - DEV Community
March 17, 2026 - Redirect users to GitHub’s OAuth page to log in. Handle the redirect with an authorization code.
🌐
GitHub
github.com › topics › login-page
login-page · GitHub Topics · GitHub
react android ios react-native component cross-platform login screen customizable easy login-page login-screen customizable-ui freakycoder kurat react-native-login-screen one-line-code
🌐
GitHub
github.com › topics › login-form
login-form · GitHub Topics · GitHub
This repository includes mini samples using CSS animations or JS libraries to create sliders, dashboards, landing pages and login forms. You can find more from my CodePen profile.
🌐
GitHub
cli.github.com › manual › gh_auth_login
GitHub CLI | Take GitHub to the command line
For more information on OAuth scopes, see https://docs.github.com/en/developers/apps/building-oauth-apps/scopes-for-oauth-apps/. ... # Start interactive setup $ gh auth login # Open a browser to authenticate and copy one-time OAuth code to clipboard ...
Top answer
1 of 3
35

You don't login to Git.

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

(As an example of a 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.


Regarding AgilePro's answer:

Again, there is no way to ask git to log in, instead you have to make a bogus change and then try to push the change to get it to prompt you to log in.

Not true.

Git itself does not log you in, as mentioned in my answer above.

A third-party CLI tool (like GitHub CLI gh) can connect to a repository hosting service (like github.com) and trigger the authentication.
No repository needed.

With GitHub: create first through the Web UI a Personal access tokens (classic), with minimum required scopes: repo, read:org, and gist.
Its token prefix will be ghp_....

Then authenticate yourself from the command-line, after installing gh, using gh auth login

gh auth login

You can enter your GitHub user account name, and your token.

Then, a gh auth status would give you:

C:\Users\vonc\git>gh auth status
github.com
  ✓ Logged in to github.com as VonC (C:\Users\vonc\AppData\Roaming\GitHub CLI\hosts.yml)
  ✓ Git operations for github.com configured to use https protocol.
  ✓ Token: ghp_************************************
  ✓ Token scopes: admin:org, gist, repo, user, workflow

You are authenticated (to GitHub, not to "Git").


You can also register your token with the local credential manager:

git config --global credential.helper manager
printf "protocol=https\nhost=github.com\nusername=<me>\npassword=<my_token>" |\
  git-credential-manager store

This is purely for safekeeping, and does not authenticate you.

2 of 3
24

I had a similar problem with Windows. Updating Credentials Manager helped in my case.

To open Credentials Manager search that setting or navigate to: Control Panel\All Control Panel Items\Credential Manager. In Windows Credentials -> Generic Credentials find your repo and update username/password or delete all that are not needed.

🌐
GitHub
github.com › topics › code-login
code-login · GitHub Topics · GitHub
December 3, 2022 - jquery-plugin login javascript-library javascript-plugin pincode code-login login-script pinlogin pincode-login pincode-registration
🌐
Softfix blog
softfix.in › home › how to login to github easily: a simple guide for everyone
GitHub Login Made Easy | Google, SSO & Terminal Guide
February 25, 2026 - GitHub SSO login keeps your data more secure and makes team access easier to manage. ... Let's talk! Using Git on your computer? You can also log in to GitHub from the terminal or Git Bash. This is helpful for uploading code directly from your computer.
🌐
GitHub
github.com › topics › login-app
login-app · GitHub Topics · GitHub
Create a simple login app using PHP, HTML, CSS, JavaScript. php development code develop login-app suportdevs · Updated · Oct 30, 2021 · PHP · Star 1 · It's and android app where a user can register and login with their username, email id and password. They can also be able to login through Google.
🌐
GitHub
github.com › topics › login
login · GitHub Topics · GitHub
identity login users user-management registration user-profile user identity-management hacktoberfest profile-management user-profiles ... Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication. 🔁 Mirror of https://codeberg.org/allauth/django-allauth/