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:

enter image description here

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?

1 Answer 1


You can rebuild your project.yaml by running ./craft project-config/rebuild.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.