Thuta Learning
IntermediateDevOps & Toolsbeginner

git merge

Relax. We'll talk through this in plain words — no textbook voice.

git merge command combines the history of one branch into your current branch — for example, merging changes from the "new-feature" branch into "main".

bash
# 1. Switch back to the main branch
git switch main

# 2. Merge the 'new-feature' branch into main
git merge new-feature
You should see
(All commits from the new-feature branch will be merged into the main branch)
git merge | Thuta Learning