amplify-cli icon indicating copy to clipboard operation
amplify-cli copied to clipboard

How to merge envs properly? Getting my team-provider.json overwritten.

Open christiansaavedra opened this issue 1 year ago • 1 comments

Amplify CLI Version

12.12.6

Question

Hello, I've been making changes in git branch develop and amplify env develop. I've pushed them both Now, to merge these changes to the superior branch and env (staging), I've followed these instructions: here

So, I did git checkout staging, git pull, amplify pull staging. However, when i run 'git merge develop', my team-provider.json gets overriden (the only env appearing is the develop one, the staging is completely empited).

I'm wondering what i am doing wrong and what are the correct procedures to succesfully merge my develop env in the staigng one.

christiansaavedra avatar Sep 09 '24 16:09 christiansaavedra

Hey @christiansaavedra, the team-provider-info.json contains the env information and metadata for all environments. Is the staging branch built of the main branch? If the staging branch is build of the main the team provider should contain the main branch record as well. When git merging you will need to ensure the team provider is appended rather overridden.

ykethan avatar Sep 18 '24 19:09 ykethan

Closing the issue due to inactivity. Do reach out to us if you are still experiencing this issue

ykethan avatar Oct 21 '24 15:10 ykethan

This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.

github-actions[bot] avatar Oct 21 '24 15:10 github-actions[bot]