Fix Git Authentication Error

Fixed in Under a minute!

Matt Croak Code
Level Up Coding
Published in
3 min readMar 7, 2022

--

Photo by Headway on Unsplash

I encountered this issue where I was unable to push to the repository origin because the upstream branch wasn’t set. So I tried git push --set-upstream origin my-branch. This didn’t work and it just hung there, seemingly stuck in the process. I cancelled out of it (control-c) and started Googling.

--

--