I have dedicated server with multiple magento installations e.g 1.Production 2.Dev 3.Blogs all magento installations are set up under separate secondary domains. However production has a dedicated IP and all other installations are on separate IP address.

What is the best way to set up git? should I install it in root to controll all files in one repo or it's better to set up separate repos in each installation?


  • and is this for one magento site going trough dev, stage to production? if so then one repo and separate branches
    – Anton S
    May 15, 2015 at 20:00
  • Yes dev is an exact copy of production.
    – lvekua
    May 15, 2015 at 20:03
  • only it never is but yeah in this case have them in separate repos and bring in changes between branches with rebase after merging the pullrequests
    – Anton S
    May 15, 2015 at 20:15
  • Nr 3, Blogs... What kind of installation is that?
    – Sander Mangel
    May 22, 2015 at 17:08

1 Answer 1


You will want to have one GIT repo that controls all your code and use Branches to separate out what code is checked out where. So for example you should use the MASTER branch for product and you could create a staging branch for staging and a development branch for dev.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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