Skip to content

Commit

Permalink
Create clean_repo.md
Browse files Browse the repository at this point in the history
  • Loading branch information
swharden committed Mar 15, 2020
1 parent a628352 commit ae051a4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions dev/misc/clean_repo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
ensure latest bfg is in this folder, named bfg.jar

create a mirror (don't run bfg on existing clones)
```
git clone --mirror https://github.com/swharden/ScottPlot.git
```

remove all folders named "images" from the history
```
java -jar bfg.jar --delete-folders "images" ScottPlot.git
```

clean up
```
cd ScottPlot.git
git reflog expire --expire=now --all
git gc --prune=now --aggressive
```

0 comments on commit ae051a4

Please sign in to comment.