Thuta Learning
Git
IntermediateDevOps & ToolsBeginner

git merge

GitLesson 13

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)

Updated on

Progress is saved only in this browser on this device. It isn't synced to other devices.

Report a problem with this lessonOpens your email app with this lesson's address filled in — nothing is sent until you send it.

git merge | Thuta Learning