Created
June 5, 2018 22:53
-
-
Save autarch/d7e9d2215e7d3106d91b9a34fe274618 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
#!/bin/bash | |
git init | |
du -sh . | |
for n in 1 2 3 4 5 6 7 8 9 10; do | |
dd if=/dev/urandom of="$n.foo" bs=1024 count=10240 | |
done | |
git add . | |
git commit -m '100MB of junk' | |
du -sh . | |
for n in 1 2 3 4 5 6 7 8 9 10; do | |
dd if=/dev/urandom of="$n.foo" bs=1024 count=10240 | |
done | |
git add . | |
git commit -m '100MB more of junk' | |
du -sh . | |
git rm *.foo | |
git commit -m 'Delete' | |
du -sh . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment