Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-10T16:02:45.723Z
Answers.LastActivityDate: 2019-04-10T16:02:45.723Z
Answers.UserDisplayName: Oli
Body: <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>
  
Tags: <projectconfig><project.yaml>
Title: Response: {"error":"Undefined index: fieldGroup"}
ThreadText: # 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.
  
  
  ---
  
  