Git

When you have a .git folder and want to see a history of all the commits:

1
git log --patch

View specific commit hashes:

1
git show

Disk Images

If you want to carve out files from a disk image, try using foremost.
Note that foremost will print out the binaries to the console which may crash it - make sure to redirect output somewhere.

1
foremost image -o