password auth removed 🌿 Git

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

GitHub no longer accepts account passwords for Git over HTTPS.

Seen on: Git

Meaning

Use a personal access token (fine-grained or classic), the GitHub CLI / Git Credential Manager, or SSH keys.

Common causes

  • Using your GitHub password in a git prompt
  • Old scripts with user:password in URLs

⚡ Quick fix

  1. Create a token (Settings → Developer settings → Personal access tokens) and use it as the password
  2. Run gh auth login
  3. Switch the remote to SSH

Detailed fix by platform

Git

  1. git remote set-url origin git@github.com:owner/repo.git

How to diagnose

  1. Method — HTTPS with password?
  2. Recent change — Did it start after a deploy, upgrade, or configuration change? Compare with the last working version.

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.