Within project, someone pushed new files, I didn't pull them, then I've added new files, commited and then tried to push it to main.
git push -u origin main
Returns
! [rejected] main -> main (non-fast-forward)
Then git checkout main
Gives me
README.md: needs merge
error: you need to resolve your current index first
How to solve conflict and proceed with my push?