diff options
-rwxr-xr-x | push-gh-pages.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/push-gh-pages.sh b/push-gh-pages.sh index 04ee2fb..6c0705a 100755 --- a/push-gh-pages.sh +++ b/push-gh-pages.sh @@ -1,7 +1,10 @@ #!/bin/bash -git clone --depth=0 [email protected]:victorhaggqvist/touch-imagelightbox.git --branch gh-pages gh-pages +rm -rf gh-pages +git clone --depth=1 [email protected]:victorhaggqvist/touch-imagelightbox.git --branch gh-pages gh-pages rm -rf gh-pages/* cp demo/* gh-pages +pushd gh-pages git add . git commit -m "$(git rev-parse --git-dir=../.git --short HEAD)" -git push origin gh-pages +git push origin gh-pages --force +popd |