DELAPARRA
Index
Color
NL
Category: Git commands

git merge

Explained by Updated

What is git merge?

git merge: Combine the history of another branch into the current branch, creating a merge commit. git merge combines another branch into your current branch. git merge feature/export brings the feature's commits into main, usually with a merge commit that joins the two lines of history. When both branches changed the same lines, Git stops with a conflict and marks the spots in the files. You decide what the result should be, stage the files and complete the merge.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about git merge

What should you keep in mind with git merge?

Merging keeps the history exactly as it happened, including when branches split and rejoined. Some teams prefer that; others prefer rebasing for a straight history. Either way, merge often. Small, frequent merges have small conflicts. Merging a branch that has lived apart for a month can mean an afternoon of untangling changes nobody remembers clearly.

At a glance

CategoryGit commands
Explained by
Updated

More Git commands terms

All terms starting with G

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.