Services Work Learn About Contact
0/8
Lesson 6 of 8

Merging

git merge combines changes from one branch into another. First, switch to the branch you want to update (usually main). Then merge the feature branch into it.

Sometimes two branches changed the same lines — this creates a merge conflict. You must manually decide which changes to keep.

GIT
# Switch to main branch
git checkout main

# Merge feature branch into main
git merge feature-login

# Delete the feature branch after merging
git branch -d feature-login
🧠

Quick Quiz

Answer correctly to unlock the next lesson.

Support the mission

This learning platform is 100% free: no ads, no tracking, no paywalls. If it helped you learn something useful, you can support future lessons or donate to Doctors Without Borders, which provides emergency medical care in crisis zones worldwide.

🎉

You completed Git & GitHub!

You finished all 8 lessons and quizzes. You now know the basics of Git & GitHub.