Common causes
- SSH key not added to GitHub/GitLab account
- The repository was deleted, renamed, or moved
- Wrong remote URL — the repo may have changed ownership
- HTTPS credentials are incorrect or expired
How to fix it
- Verify the remote URL is correct: git remote -v
- For SSH: test connectivity: ssh -T [email protected]
- For HTTPS: try cloning with a fresh token
- Check if the repository still exists and you have access to it on GitHub/GitLab
Example
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.Running git push when the remote URL points to a deleted or inaccessible repo
Have a different error?
Paste any error message into the Error Translator to get an instant explanation.
