mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 08:19:43 +00:00
16 lines
370 B
Bash
Executable file
16 lines
370 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [[ ! -d BOSL2.wiki/.git ]] ; then
|
|
echo "Must be run from above the BOSL2.wiki repo." >&2
|
|
exit 1
|
|
fi
|
|
|
|
set -e # short-circuit if any command fails
|
|
cd BOSL2.wiki
|
|
rm -rf .git
|
|
git init
|
|
git add .
|
|
git commit -m "Purged wiki history."
|
|
git config pull.rebase false
|
|
git remote add origin git@github.com:BelfrySCAD/BOSL2.wiki.git
|
|
git push -u --force origin master
|