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.
git pull will fetch the remote/master branch and merge it into your local/dev branch.
git pull will fetch the remote/dev branch, and merge it into your current branch.
I think you said the conflicting commit is on remote/dev, so that is the branch you probably intended to fetch and merge.
In that case, you weren't actually merging the conflict into your local branch, which is sort of weird since you said you saw the incorrect code in your working copy. You might want to check what is going on in remote/master.