To bring a branch's work into main: switch to main, then git merge feature-contact.
Merge conflicts
If both branches changed the same lines, Git cannot decide automatically. It marks the conflict in the file:
<<<<<<< HEAD
your version
=======
their version
>>>>>>> feature-contact
Edit the file to keep the correct content, remove the markers, then git add and git commit.
💡 Key Takeaways: Git Merge & Conflicts
Mastering Git Merge & Conflicts helps you write clean and reliable Git code. Follow standard conventions, test edge cases, and keep logic simple. Try running the code example below and complete the exercises to build confidence.