Created
September 24, 2011 13:32
-
-
Save zoranzaric/1239325 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ bup init | |
Initialized empty Git repository in /tmp/.bup/ | |
$ dd if=/dev/urandom of=foo count=10 bs=1M | |
$ bup index . | |
Indexing: 2, done. | |
$ bup save -n repack-demo . | |
Reading index: 2, done. | |
Saving: 100.00% (10244/10244k, 2/2 files), done. | |
bloom: creating from 1 file (1357 objects). | |
$ du -hs /tmp/.bup | |
11M /tmp/.bup | |
$ echo "" > foo | |
$ bup index . | |
Indexing: 2, done. | |
$ bup save -n repack-demo . | |
Reading index: 2, done. | |
Saving: 100.00% (4/4k, 2/2 files), done. | |
bloom: adding 1 file (5 objects). | |
$ du -hs /tmp/.bup | |
11M /tmp/.bup | |
$ echo "$(git rev-parse repack-demo)" > /tmp/.bup/info/grafts | |
$ git filter-branch repack-demo | |
Rewrite f6802e1f68758415c503a6be7e4f0d9c8e3e1f79 (1/1) | |
Ref 'refs/heads/repack-demo' was rewritten | |
$ bup repack | |
Traversing repack-demo to find needed objects... | |
Writing new packfiles... | |
Writing objects: 4, done. | |
bloom: creating from 1 file (3 objects). | |
bloom: adding 1 file (1 object). | |
$ du -hs /tmp/.bup | |
172K /tmp/.bup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment