Response: {"error":"Undefined index: fieldGroup"} I've recently had to handle a massive merge on a Craft project which resulted in many conflicts in the project.yaml file. I tried to clean up the merge conflicts as best as I can.

And now I have this error:



Question now is there a way to recover or re-generate the project.yaml?

Also, this my first experience working with Craft in a team. Any suggestions on best approach to keep project.yaml clean?
You can rebuild your project.yaml by running ./craft project-config/rebuild.

In terms of workflow here's a good article that discusses it.