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