So I’ve begun using git and I want to create a script that deploys a specific branch…
my file structure usually has a repos folder below the document_root where my repo’s for a specific site is located… and then I have the public_html folder there as well..
Keep in mind I’ve been using git and everything for about 4 days now…
So i’m thinking my command would be something like:
git deploy <branch> <location to deploy to>
Any ideas?
You probably want to look at the
git archivecommand.For instance:
would export the contents of the master branch of the repo at
~/site1-repo, into the public_html folder of site1.