1#!/bin/bash
 2
 3if [[ ! -d BOSL2.wiki/.git ]] ; then
 4	echo "Must be run from above the BOSL2.wiki repo." >&2
 5	exit 1
 6fi
 7
 8set -e # short-circuit if any command fails
 9cd BOSL2.wiki
10rm -rf .git
11git init
12git add .
13git commit -m "Purged wiki history."
14git config pull.rebase false
15git remote add origin git@github.com:BelfrySCAD/BOSL2.wiki.git
16git push -u --force origin master