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.
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.
Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback