Skip to content

Instantly share code, notes, and snippets.

@autarch
Created June 5, 2018 22:53
Show Gist options
  • Save autarch/d7e9d2215e7d3106d91b9a34fe274618 to your computer and use it in GitHub Desktop.
Save autarch/d7e9d2215e7d3106d91b9a34fe274618 to your computer and use it in GitHub Desktop.
#!/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