GitHub – error: failed to push some refs to ‘[email protected]:myrepo.git’

Your origin repository is ahead of your local repository. You’ll need to pull down changes from the origin repository as follows before you can push. This can be executed between your commit and push.

git pull origin development

development refers to the branch you want to pull from. If you want to pull from master branch then type this one.

git pull origin master

Leave a Comment