git: updates were rejected because the remote contains work that you do not have locally

前端 未结 17 1455
梦如初夏
梦如初夏 2020-11-22 04:54

I\'m working on a team with a few developers using git on BitBucket. We are all working on a dev branch, not pushing to master until a release.

17条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-22 05:18

    I fixed it, I'm not exactly sure what I did. I tried simply pushing and pulling using:

    git pull dev instead of git pull master:dev

    Hope this helps out someone if they are having the same issue.

提交回复
热议问题