The first time I tried to push code from my work machine, GitHub said no. Not a polite error — a flat 401 on every git clone and git push , while the exact same credentials worked fine through the API. My files were ready, my commit message was written, and the normal road was closed. That afternoon I learned to push to GitHub without git — not as a party trick, but as the only way my projects were going to ship. Two months later, this API workflow has pushed hundreds of commits across a dozen repositories, and I have not missed git push once.
Why I Can't Just Use Git
My setup is unusual, and the problem started there. I work from a Linux VM where my GitHub credential is substituted only for api.github.com — the API endpoint. Git transport ( github.com over HTTPS or SSH) never sees that credential, so every clone and push dies with a 401 .…