git pull <remote> master:dev
will fetch the remote/master
branch and merge it into your local/dev
branch.
git pull <remote> dev
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
.
Related Posts:
- How do I delete a Git branch locally and remotely?
- How do I delete a Git branch locally and remotely?
- How do I rename a local Git branch?
- How do I undo the most recent local commits in Git?
- How to merge branch to master?
- How can I switch to another branch in git?
- Download single files from GitHub
- How to revert multiple git commits?
- The following untracked working tree files would be overwritten by merge, but I don’t care
- How to revert multiple git commits?
- The following untracked working tree files would be overwritten by merge, but I don’t care
- merge one local branch into another local branch
- What does “Git push non-fast-forward updates were rejected” mean?
- Git error on commit after merge – fatal: cannot do a partial commit during a merge
- How can I reset or revert a file to a specific revision?
- What is the difference between `git merge` and `git merge –no-ff`?
- The following untracked working tree files would be overwritten by merge, but I don’t care
- git – Your branch is ahead of ‘origin/master’ by 1 commit
- Your configuration specifies to merge with the
from the remote, but no such ref was fetched.? - Set up git to pull and push all branches
- Invalid VCS root mapping – 3 errors on my project
- how to reset develop branch to master
- “fatal: HttpRequestException encountered.” Error with GitHub/Bitbucket Repositories due to dropping TLS-1.0 support
- SourceTree keeps asking for Github password
- Delete branches in Bitbucket
- How to resolve git status “Unmerged paths:”?
- How can I see the changes in a Git commit?
- How do you merge two Git repositories?
- Git merge reports “Already up-to-date” though there is a difference
- How to merge a specific commit in Git
- How can I delete all Git branches which have been merged?
- difference between git merge origin/master and git pull
- Eclipse EGit Checkout conflict with files: – EGit doesn’t want to continue
- How can I push a specific commit to a remote, and not previous commits?
- What’s a good (free) visual merge tool for Git? (on windows)
- Pull latest stable release via git [closed]
- Version control with a team of non-developers
- Painless way to track remote Git repo for WordPress updates
- Questions about Git and WordPress [duplicate]
- What does cherry-picking a commit with Git mean?
- Git refusing to merge unrelated histories on rebase
- What is the difference between git push origin and git push origin master
- git – remote add origin vs remote set-url origin
- Git: Message ‘src refspec master does not match any’ when pushing commits in Git
- How to upgrade Git on Windows to the latest version
- How do I push a new local branch to a remote Git repository and track it too?
- git: fatal: Could not read from remote repository
- Windows git “warning: LF will be replaced by CRLF”, is that warning tail backward?
- What does “Changes not staged for commit” mean
- How can I make git accept a self signed certificate?
- How to change the URI (URL) for a remote Git repository?
- What would I use git-worktree for?
- Git error when trying to push — pre-receive hook declined
- Git: How to squash all commits on branch
- How do I revert all local changes in Git managed project to previous state?
- You have not concluded your merge (MERGE_HEAD exists)
- git – pulling from specific branch
- How to copy commits from one branch to another?
- Another git process seems to be running in this repository
- How do you stash an untracked file?
- How do I call git diff on the same file between 2 different local branches?
- How to git rebase a branch with the onto command?
- Trying to git pull with error: cannot open .git/FETCH_HEAD: Permission denied
- Remove a git commit which has not been pushed
- Remove a git commit which has not been pushed
- There is no tracking information for the current branch
- Git push results in “Authentication Failed”
- What are the differences between .gitignore and .gitkeep?
- What’s the difference between git switch and git checkout
- What is the point of ‘git submodule init’?
- Git nothing added to commit but untracked files present – even with those files added to gitignore
- Git merge with force overwrite
- ERROR: Error cloning remote repo ‘origin’
- git push to specific branch
- What does git push origin HEAD mean?
- Do I commit the package-lock.json file created by npm 5?
- Why does Git say my master branch is “already up to date” even though it is not?
- What to gitignore from the .idea folder?git intellij-idea gitignore webstorm
- How do you clone a Git repository into a specific folder?
- Aborting commit due to empty commit message
- git checkout master error: the following untracked working tree files would be overwritten by checkout
- How to update a branch with master on GitHub
- Git removing upstream from local repository
- Git pull – Please move or remove them before you can merge
- Unlink of file Failed. Should I try again?
- How to recover stashed uncommitted changes
- Git Pull is Not Possible, Unmerged Files
- Resetting remote to a certain commit
- Change the location of the ~ directory in a Windows install of Git Bash
- git replace local version with remote version
- Where is git.exe located?
- How to find which git branch I am on when my disk is mounted on other server
- Git checkout – switching back to HEAD
- How to create a new branch from a tag?
- Workflow for working with git and WordPress
- best practice on pushing staging development (database/uploads) to the live server
- Initial wordpress deploy via git
- How to use wordpress with Git?
- Is it possible to checkout a beta version of WordPress via github?
- how can I create a WP offline environment before releasing the websites? [closed]