A merge combines the work of another branch into the current one. If both sides have new commits, Git records a merge commit and keeps both histories as they happened.