# Navigate to the html folder. cd /var/www/html # Temporally move the git folder. sudo mv local.magebootcamp.com/.git .git # Now remove the local.magebootcamp.com folder # because we are going to recreate it. sudo rm -R local.magebootcamp.com/* cd local.magebootcamp.com # Make sure you also deleted the PHPStorm config. rm -R .idea
Clean up files
The first step for installing a fresh Magento installation is making sure you have a clean folder. We have previously done some testing with git in the folder. The ‘composer create-project’ command needs an empty directory to create a new project.
So we are going to delete the files and move the git out of the folder. By doing this we can create the Magento project. After we created the project we will move the git folder back.