Clone Existing Git Repo into Local

Issue Summary

I have started working with a dev team that already has a project on GitHub. I would like to clone the repo and import it to use in Local. It’s a Sage themed Wordpress install and I will have to use Composer and Yarn. I know that I can import a site using a zip file with the database included but am I able to clone an existing repo into local?

if your zip file has the local git repo in it, it will come along and you’ll have it locally as well

Yes, you can. I do this with all of my Local sites as I always work with version-controlled projects, usually based on Bedrock, which is also built on Composer. My typical process is to create a new site, wipe the public folder, clone my repo into it, run composer, manually import the database using an export script and make any necessary configuration changes.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.