📁 Files
README.md
config.py
! ConflictS StagedM ModifiedU Untracked
No files staged. Use
git add to stage changes.📊 Commit Graphcurrent branchfeature/settings
git add to stage changes.<<<<<<< HEAD (your changes), ======= (separator), >>>>>>> branch-name (their changes). Edit the file to keep what you want, then remove the markers.git add <file> to mark it as resolved. Once all conflicts are resolved, run git commit to complete the merge with both parents in the history.config.py on separate branches. Your teammate merged their changes to main, and now you need to integrate them into your feature branch.
When you run git merge main, Git can't auto-merge because both sides changed the same lines. The merge pauses with a conflict.
You need to edit the conflicted file, choose what to keep, stage it as resolved, and complete the merge commit.git log --all --oneline. Two branches exist: main and feature/settings. Both modified config.py differently after the initial commit — that's a merge conflict waiting to happen.