xxxxxxxxxx
# run the Following
git pull origin --rebase
xxxxxxxxxx
# Quick fix
git merge origin/BRANCH_NAME
#Better option
#Goto you local repo, edit .git/config and use this
[pull]
ff = no
rebase = false
xxxxxxxxxx
git pull --rebase. Unlike the other solution, you don't need to know the name of your destination branch.
If your upstream branch is not set, try git pull origin <branch> --rebase (credit to @Rick in the comments)
xxxxxxxxxx
If
git pull
does not do the trick and if you want to merge both the current changes and the changes that'd come from the pull of the branch from origin then do this:-
git merge origin/BRANCH_NAME
After that, resolve the merge conflicts if any and done for the day.
xxxxxxxxxx
git fetch origin dev
git merge origin dev
Replace dev with branch_name you want to pull.
if that doesnot work
git pull origin dev --no-ff