ProjectStack
git

fatal: Could not read from remote repository

Git can't access the remote repository at all. This is usually an authentication problem (wrong SSH key or HTTPS credentials) or the repository URL is incorrect.

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

  1. Verify the remote URL is correct: git remote -v
  2. For SSH: test connectivity: ssh -T [email protected]
  3. For HTTPS: try cloning with a fresh token
  4. 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.