1. Home
  2. GitHub
  3. Errors and problems
  4. Git password rejected

Common problemGitHubGit command line

GitHub rejects your password on git push

Git over HTTPS needs a token now

Git asks for a password and then fails with an authentication error. GitHub removed password sign-in for Git, so HTTPS pushes and pulls need a personal access token or a credential helper.

Is GitHub down right now? Major outage: 787 problem reports in the last hour. Many people are having trouble, so this problem may come from GitHub's side: waiting can be enough.
Fix it

How to fix it

  1. Create a personal access token in your GitHub settings.

  2. Paste the token when Git asks for your password.

  3. Or sign in with gh auth login in GitHub CLI, or use a credential helper such as Git Credential Manager.

  4. Or switch the remote to an SSH URL and add an SSH key to your account.

From GitHub's help pages: docs.github.com, in our words. Checked on 5 November 2026. If the steps do not help, GitHub's own support is the next stop.

More

More GitHub errors and common problems

All GitHub errors and common problemsLive GitHub status