2021-02-24 16:42:09 -08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [[ ! -d BOSL2.wiki/.git ]] ; then
|
2021-05-21 00:46:17 -07:00
|
|
|
echo "Must be run from above the BOSL2.wiki repo." >&2
|
|
|
|
exit 1
|
2021-02-24 16:42:09 -08:00
|
|
|
fi
|
|
|
|
|
2021-05-21 00:46:17 -07:00
|
|
|
set -e # short-circuit if any command fails
|
2021-02-24 16:42:09 -08:00
|
|
|
cd BOSL2.wiki
|
|
|
|
rm -rf .git
|
|
|
|
git init
|
|
|
|
git add .
|
|
|
|
git commit -m "Purged wiki history."
|
2021-05-21 02:19:14 -07:00
|
|
|
git config pull.rebase false
|
2021-02-24 16:42:09 -08:00
|
|
|
git remote add origin git@github.com:revarbat/BOSL2.wiki.git
|
|
|
|
git push -u --force origin master
|