Skip to content

Instantly share code, notes, and snippets.

@freshjones
Created March 14, 2015 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freshjones/486fe4794c19831a65e3 to your computer and use it in GitHub Desktop.
Save freshjones/486fe4794c19831a65e3 to your computer and use it in GitHub Desktop.
Git Setup for website deployment
#!/bin/sh
ENVPATH=/var/www/sites/example.com
git --work-tree=$ENVPATH/public/ checkout -f
rm $ENVPATH/public/build.*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment