`git merge feature` prints `Already up to date.` although the feature branch clearly has new work.
IntermediateTroubleshootingMerge and Rebase Problems
Answer
Likely causes → The branch is already an ancestor of your current branch, you are merging a stale local copy instead of origin/feature, or you are on the wrong branch.
Diagnose →
git branch --show-current
git merge-base --is-ancestor feature HEAD && echo "already merged"
git log --oneline HEAD..origin/feature
Fix → git fetch, merge origin/feature, and double-check the branch you are on. If the work was squash-merged earlier, compare content with git diff HEAD feature.
Prevent → Fetch first, and verify the branch name in your prompt.
More on Merge and Rebase Problems
Production failed to start, and the file contains `<<<<<<< HEAD` lines that were committed.Beginner`error: you need to resolve your current index first`Beginner`fatal: You have not concluded your merge (MERGE_HEAD exists).`BeginnerRebase stops: `error: could not apply 1a2b3c4... Add retry` and later `No changes - did you forget to use 'git add'?`Intermediate`fatal: It seems that there is already a rebase-merge directory, and I wonder if you are in the middle of another rebase.`Intermediate`CONFLICT (modify/delete): config/old.yml deleted in HEAD and modified in feature.`Intermediate