Created
January 13, 2012 22:26
-
-
Save aespinosa/1609101 to your computer and use it in GitHub Desktop.
Web page post-receive deployment using archive instead of pull or clones
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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