In my first Magento 2 project I followed an guide for installation which recommended in clone git repo to install.
Later only found this is disastrous!!! Obviously now I cannot simply use Composer to update my Magento, neither could I update it with git: the file system has been move places and when I tried to pull origin 2.1.8
I got hundreds of files listed as both added
in git status
which totally messed up my code.
I'm thinking installing a fresh Magento (with composer this time!), and then migrate the site over (from 2.1.0 to 2.1.8), is there an easy way to copy database so I can preserve previous history such as products, customers, orders, etc?
Why using git clone creates such problem?