Error Encountered: Failed to push some refs to git repo

Em Achieng
1 min readAug 1, 2019

--

Problem

I was working on a branch, say development, ready to push my changes. And when I executed:

git push — set-upstream origin development

I encountered a error message error:

failed to push some refs to my git.

I tried:

git push — set-upstream origin development

Failed to push the refs too.

How I solved it:

git push — set-upstream origin development

Then I pushed again

git push origin development

And it worked!

--

--