Git Fetch 403 Error on Private Repositories — Pitfalls of URL-Embedded PAT and Solutions
lin-yuchen2026.07.11
- • Explains why git push succeeds but git fetch origin returns 403 on GitHub Organization private repositories
- • Root cause is asymmetric configuration: PAT-embedded URL for push vs unauthenticated origin for fetch
- • Solution: use $AUTHED_ORIGIN consistently across all git operations and manage PAT securely via 1Password
