Skip to content

How to migrate/backup all remote branches

Steps as follows:

$ magento-cloud project:get e7s9kiwfapxcy
$ cd cloned-directory
$ git branch -a 

Output:

* master
remotes/magento/HEAD -> magento/master
remotes/magento/jcollins
remotes/magento/jcollins-child
remotes/magento/master

I created a new private repository in Bitbucket
I created a new private repository in Bitbucket

git remote add origin [email protected]:justincoll/magento.git

Finally, I attempt to push all remote branches

git push -u origin --all

Result: Only master is pushed