Skip to content

Instantly share code, notes, and snippets.

View georgegach's full-sized avatar
🚀

Giorgi Gachechiladze georgegach

🚀
View GitHub Profile
@georgegach
georgegach / gh-pages-deploy.sh
Last active August 21, 2022 07:42 — forked from SangsooNam/gh-pages-deploy.sh
Script to deploy a target directory to `gh-pages` branch and force server-side cache to update
#!/bin/bash
directory=_site
branch=gh-pages
build_command() {
jekyll build
}
echo -e "\033[0;32mDeleting existing $branch...\033[0m"
git push origin --delete $branch
git branch -D $branch