echo 3 > /proc/sys/vm/drop_caches
. You can run "sync" first to flush dirty pages.(Posting this in part because it took me a while to find it, so hopefully that subject will help search engines in the future.)
PS: been playing with git. Holy hell is it fast.