Home git How to resolve error failed to push some refs to git?

How to resolve error failed to push some refs to git?

by Shahriar Sagor

Today now in post i would like to show you how to resolve error failed to push some refs to git. When I was fetch this error on that time i was working on my php project and when i need to add that project on my gitlab account. So at first i was create a repository on my gitlab account and then clone that repo. But when i was try to push first time my projects i was found the following error:

error failed to push some refs to https://infotech@bitbucket.org/infotech/mycollege.git

Then I was try many to solve the bellow issue, but i can’t found any proper solution now at last i was try my own to git add as like this way :

git add -A
git commit -m "setup project"
git push origin master....

Read Also : How to convert Object into Array in PHP?

Thanks for read. I hope it help you. For more you can follow us on facebook.

close

You may also like