Skip to content

Commit da11782

Browse files
committed
Add script used to clean, and restart repo
1 parent 9a396c2 commit da11782

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

scripts/restart-repo.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/env bash
2+
3+
temp=$(mktemp -d)
4+
5+
cp -r docs/deprecated_images "${temp}"
6+
cp -r docs/images "${temp}"
7+
8+
git remote remove origin
9+
git-filter-repo --path docs/images --path docs/deprecated_images --invert-paths --force
10+
11+
mv "${temp}/deprecated_images" docs
12+
mv "${temp}/images" docs
13+
14+
git add docs/deprecated_images
15+
git add docs/images
16+
git commit -m "Added templated files"
17+

0 commit comments

Comments
 (0)