Git - error failed to push some refs to git resolve?

By Hardik Savani September 5, 2020 Category : Git Bitbucket

I fetch this error i was working on my php project and when i need to add that project on my bitbucket account. so first i create repository on my bitbucket account and clone that repo. but when i push first time my projects i found following error:

error failed to push some refs to

https://infotech@bitbucket.org/infotech/mycollege.git

I did try many to solve bellow issue, but i can't found proper solution at last i did try my own to git add like this way :

git add -A

git commit -m "setup project"

git push origin master

....

And Solve my issue, you can try this if you solve your problem.

We are Recommending you