0

I am working on a project based on Magento Commerce Cloud.

I am trying sync code from master to Staging branch but i am getting failure message.And when i view the logs,i am seeing merge conflict w.r.t some files.

Can anyone please guide on how can i fix this

Thanks!

1
  • did you find a way to fix this that worked for you?
    – wr125
    Commented Aug 13, 2019 at 16:16

2 Answers 2

0

Without knowing where you are and what's awaiting change I can only suggest something like this:

git checkout develop
git reset --hard
git fetch
git rebase
git checkout master
git reset --hard
git fetch
git rebase
git merge develop

If you still get conflicts you will have to manually work through them after this point.

Others will probably suggest merging master into develop and resolving conflicts on develop branch.

But without seeing the files and what's happening it's a best guess scenario.

0

On your local machine merge master in to staging and then use your tool of choice to manually fix the merge conflict, then push to Magento Cloud. PHP Storm is great for this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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