Best way to Git Clone code into a site container?

I’m trying to figure out how I can either run a shell command or use one of the existing APIs to git clone a repo into a specified directory into any given WordPress container in Local. Basically just trying to create a button I can click and have a repo automagically cloned into a WP directory.

Thanks,
Rob Ruiz

1 Like

Does anyone from Local even read this forum? @clay

You’re trying to clone a Git repository and put it in the app/public folder for a given Local website?

Yes, I was. But I figured it out. I ended up using a node package called download-git-repo. It actually worked quite nicely.

Nice!

Going the route of using a node package will likely mean that the solution is more portable since it should in theory work under both Windows and *Nix machines.

Do you have the add-on in a public repo? I’d be curious to see what you came up with!

No it’s not public. However, we are looking for contributors to this project as it is open source. If your interested in even the smallest of contributions, I could grant you access. It’s actually a very interesting project.

Yeah, that would be cool to see what you’re working on! This is me on GH: https://github.com/bgturner