Skip to content

Git push hangs when migrating Magento Cloud project to new environment

I’m in the process of migrating an existing Magento Cloud project to a new Magento Cloud project. My current project is linked to a Git repository and have multiple environments (e.g., QA2, QA3), each associated with corresponding branches in GitHub.

For the migration, I’ve forked the existing Git repository and linked it to my new Magento Cloud project, which also has multiple environments (e.g., Dev, QA). I’ve added the deploy key from the new Magento Cloud project to my forked GitHub repository’s settings.

I’ve verified the remote URLs by adding a remote named magento pointing to [email protected]:.git and have confirmed they are correctly set to point to the new Magento Cloud project’s Git repository.

However, when I attempt to push a branch from my forked repository to the new Magento Cloud project using the command git push magento QA3:QA, the command gets stuck indefinitely, displaying no error messages or output.

Could anyone provide insight into why this might be happening or suggest troubleshooting steps?

Thank you in advance for your help!