Merging combine les modifications d'une branche à une autre — typiquement pour réintégrer une branche de fonctionnalité complétée dans la branche principale. Git gère la plupart des fusions automatiquement, mais comprendre les types de fusion et les conflits est important.
Fusion basique
git switch main # be on the branch you want to merge INTO
git merge feature-x # merge feature-x's changes into main
You switch to the branch (the one receiving changes) and merge the branch into it.
