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

By Hardik Savani | April 9, 2016 | | 36989 Viewer | 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.



Hardik Savani
My name is Hardik Savani. I'm a full-stack developer, entrepreneur and owner of Aatman Infotech. I live in India and I love to write tutorials and tips that can help to other artisan. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.
***Do you want me hire for your Project Work? Then Contact US.