Gitexit code > 0
fatal: could not read from remote repository
$fatal: could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Analysis
Git cannot access the remote URL, either because it doesn't exist or you lack permission.
Common Triggers
- ●SSH key not loaded or invalid.
- ●Repository URL is incorrect (typo).
- ●Repository was deleted or is private (and you lack access).
Debug Checks
- $Test SSH connection:
ssh -T [email protected]. - $Check remote URL:
git remote -v.
Resolution
1
Fix SSH key setup (add to agent, add to GitHub/GitLab).
2
Update remote URL:
git remote set-url origin <url>.Metadata
- Tool
- Git
- Severity
- High
- Tags
- #git#remote#auth