Skip to content

Instantly share code, notes, and snippets.

@carld
Forked from memphys/deploy.sh
Created April 4, 2017 05:32
Show Gist options
  • Save carld/aa9c9bbc834b9ec631c83c65ae417b46 to your computer and use it in GitHub Desktop.
Save carld/aa9c9bbc834b9ec631c83c65ae417b46 to your computer and use it in GitHub Desktop.
Easy deployment with git and ssh
git archive --format=tar origin/master | gzip -9c | ssh user@yourserver.com "cd /var/www; tar xvzf -"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment