From 5d5844efed96cd3b9c03ceb89ce216fdd25396cc Mon Sep 17 00:00:00 2001 From: Victor Häggqvist Date: Sat, 16 Jan 2016 22:45:21 +0100 Subject: util scripts --- push-gh-pages.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 push-gh-pages.sh (limited to 'push-gh-pages.sh') diff --git a/push-gh-pages.sh b/push-gh-pages.sh new file mode 100755 index 0000000..04ee2fb --- /dev/null +++ b/push-gh-pages.sh @@ -0,0 +1,7 @@ +#!/bin/bash +git clone --depth=0 git@github.com:victorhaggqvist/touch-imagelightbox.git --branch gh-pages gh-pages +rm -rf gh-pages/* +cp demo/* gh-pages +git add . +git commit -m "$(git rev-parse --git-dir=../.git --short HEAD)" +git push origin gh-pages -- cgit v1.2.3