Merge small and often, resolve conflicts immediately, write a real merge message, and use
--no-ffwhen you want an audit trail.
Merging without pain
Merge small branches
A 20-commit branch conflicts more than a 2-commit branch. Merge daily, not monthly.
Resolve conflicts locally
Read every conflict mark; do not blindly accept "theirs". A wrong conflict resolution is a silent bug.
Use `--no-ff` for feature branches
A merge commit records the merge in history.
git merge --no-ff feature/xmakes it visible.Write the merge message
Default is "Merge branch 'x' into 'y'". If the branch has 20 commits, list them in the body. Future-you will thank you.