Skip to content

Instantly share code, notes, and snippets.

@zerolab
Last active July 26, 2016 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zerolab/3bdf148742cc8c82ab965f3e3c1095c8 to your computer and use it in GitHub Desktop.
Save zerolab/3bdf148742cc8c82ab965f3e3c1095c8 to your computer and use it in GitHub Desktop.
BFG cleanup history
# dan at torchbox in /tmp/cleanup [9:27:19]
→ git clone --mirror git@github.com:torchbox/wagtail-torchbox.git
Cloning into bare repository 'wagtail-torchbox.git'...
remote: Counting objects: 14142, done.
remote: Compressing objects: 100% (152/152), done.
remote: Total 14142 (delta 82), reused 0 (delta 0), pack-reused 13989
Receiving objects: 100% (14142/14142), 696.10 MiB | 8.55 MiB/s, done.
Resolving deltas: 100% (6776/6776), done.
Checking connectivity... done.
# dan at torchbox in /tmp/cleanup [9:32:56]
→ java -jar /opt/tools/bfg.jar --delete-folders media.old --delete-files media.old --protect-blobs-from master wagtail-torchbox.git
Using repo : /private/tmp/cleanup/wagtail-torchbox.git
Found 336 objects to protect
Found 51 commit-pointing refs : HEAD, refs/heads/1428-contact-form, refs/heads/blog-sibling-fix, ...
Protected commits
-----------------
These are your protected commits, and so their contents will NOT be altered:
* commit 26d29b47 (protected by 'master')
Cleaning
--------
Found 1245 commits
Cleaning commits: 100% (1245/1245)
Cleaning commits completed in 1,365 ms.
Updating 2 Refs
---------------
Ref Before After
-----------------------------------------------------
refs/heads/feature/tbx-redesign | 2097e6b7 | 2c7b8cec
refs/heads/staging | 2e6be087 | 84c5f1cb
Updating references: 100% (2/2)
...Ref update completed in 52 ms.
Commit Tree-Dirt History
------------------------
Earliest Latest
| |
.........................................................DDm
D = dirty commits (file tree fixed)
m = modified commits (commit message or parents changed)
. = clean commits (no changes to file tree)
Before After
-------------------------------------------
First modified commit | ee8fddab | 134f673b
Last dirty commit | 7eb6582b | 225460fb
In total, 71 object ids were changed. Full details are logged here:
/private/tmp/cleanup/wagtail-torchbox.git.bfg-report/2016-07-19/09-33-07
BFG run is complete! When ready, run: git reflog expire --expire=now --all && git gc --prune=now --aggressive
Has the BFG saved you time? Support the BFG on BountySource: https://j.mp/fund-bfg
# dan at torchbox in /tmp/cleanup [9:33:21]
→ cd wagtail-torchbox.git
# dan at torchbox in /tmp/cleanup/wagtail-torchbox.git on git:master ● [9:33:30]
→ git reflog expire --expire=now --all && git gc --prune=now --aggressive
Counting objects: 10498, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (9633/9633), done.
Writing objects: 100% (10498/10498), done.
Total 10498 (delta 6926), reused 3373 (delta 0)
# dan at torchbox in /tmp/cleanup/wagtail-torchbox.git on git:master ● [9:34:10]
→ du -hs .
85M .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment