Skip to content

Instantly share code, notes, and snippets.

@aespinosa
Created January 13, 2012 22:26
Show Gist options
  • Save aespinosa/1609101 to your computer and use it in GitHub Desktop.
Save aespinosa/1609101 to your computer and use it in GitHub Desktop.
Web page post-receive deployment using archive instead of pull or clones
#!/bin/sh
cd /var/wwwroot
git archive --remote /repository/html.git \
--format tar refs/heads/master | tar -xv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment