Skip to content

Instantly share code, notes, and snippets.

@memphys
Created March 12, 2012 06:31
Show Gist options
  • Save memphys/2020309 to your computer and use it in GitHub Desktop.
Save memphys/2020309 to your computer and use it in GitHub Desktop.
Easy deployment with git and ssh
git archive --format=tar origin/master | gzip -9c | ssh [email protected] "cd /var/www; tar xvzf -"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment