mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
Added script to shrink wiki repo to just current files.
This commit is contained in:
parent
f7f833e724
commit
ae586738a9
1 changed files with 16 additions and 0 deletions
16
scripts/purge_wiki_history.sh
Executable file
16
scripts/purge_wiki_history.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ ! -d BOSL2.wiki/.git ]] ; then
|
||||
echo "Must be run from the BOSL2 directory, with the BOSL2.wiki repo inside."
|
||||
exit -1
|
||||
fi
|
||||
|
||||
cd BOSL2.wiki
|
||||
rm -rf .git
|
||||
git init
|
||||
git add .
|
||||
git commit -m "Purged wiki history."
|
||||
git remote add origin git@github.com:revarbat/BOSL2.wiki.git
|
||||
git push -u --force origin master
|
||||
cd ..
|
||||
|
Loading…
Reference in a new issue