<p>You can rebuild your <code>project.yaml</code> by running <code>./craft project-config/rebuild</code>.</p>

<p>In terms of workflow <a href="https://medium.com/@ben_45934/understanding-project-config-in-craft-cms-3dd70b232dfa" rel="nofollow noreferrer">here's a good article</a> that discusses it. </p>

CC BY-SA 4.0
2019-04-10T16:02:45.723Z
2019-04-10T16:02:45.723Z
Oli
<p>I've recently had to handle a massive merge on a Craft project which resulted in many conflicts in the <code>project.yaml</code> file. I tried to clean up the merge conflicts as best as I can.</p>

<p>And now I have this error:</p>

<p><a href="https://i.sstatic.net/vc0gA.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/vc0gA.png" alt="enter image description here"></a></p>

<p>Question now is there a way to recover or re-generate the <code>project.yaml</code>?</p>

<p>Also, this my first experience working with Craft in a team. Any suggestions on best approach to keep <code>project.yaml</code> clean?</p>

<projectconfig><project.yaml>
Response: {"error":"Undefined index: fieldGroup"}
# Response: {"error":"Undefined index: fieldGroup"}

(Asked by: username_0 on 2019-04-10)

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](https://i.sstatic.net/vc0gA.png)](https://i.sstatic.net/vc0gA.png)

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?

**Tags:** projectconfig, project.yaml


---

## 1 answers

### Answer by username_1 on 2019-04-10. Score: 2 | Accepted answer

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

In terms of workflow [here's a good article](https://medium.com/@ben_45934/understanding-project-config-in-craft-cms-3dd70b232dfa) that discusses it.


---

