dev@local: ~/project — git
dev@local~/project$git push
fatal: authentication failed
Logon failed, use ctrl+c to cancel basic credential prompt.
Diagnostics Translation
The server rejected your credentials during an HTTPS connection.
waiting for resolution...
MediumVersion Control System

Reviewed for reference consistency: April 11, 2026

Code is Safe

SECURE

Git has paused the operation to protect your code. No data has been lost or corrupted.

What To Know

This points to a rejected credential exchange rather than corruption in local history or the working tree.

Where Did It Fail?

Working Tree
Your local files
add
Staging Index
Prepared changes
commit
Local Repo
Commit history
push/fetch
Remote Server
GitHub/GitLab
The error occurred during a network exchange. Your local files are untouched, but Git cannot reach the remote server.

Commands That Trigger This

$git push
Running and typing your GitHub password, which is no longer supported
$A background Git fetch failing after you recently changed your account password
A background Git fetch failing after you recently changed your account password

Technical Background

01

Git relies on a 'credential helper' (like macOS Keychain or Windows Credential Manager) to store HTTPS passwords.

02

If this error occurs persistently despite typing the correct credentials, it usually means the OS credential helper is forcing an old, invalid token.

Underlying Causes

Entering an incorrect username or password
Using an account password when the platform requires a Personal Access Token (PAT)
A cached credential helper supplying an outdated password

Frequently Asked Questions

Many Git hosts separate website login credentials from Git transport credentials. The server may require a token, SSH key, or another repository-specific auth method instead of a plain account password.

Related Git States