Created
March 18, 2017 03:53
-
-
Save seanblanton/9918638d996a581cc03b55104f3c4d1f to your computer and use it in GitHub Desktop.
How to copy everything from a repo in a specific folder
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 | |
git --work-tree=/var/www/html/ --git-dir=/var/repo/repoName.git checkout -f master -- _site/ | |
cd /var/www/html/ | |
cp -rRp _site/. . | |
rm -rf _site |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment