I have a git repository, with multiple files in it.

I need to get all the revisions (not diffs) of a specific file `foo.bar`, and store it as something like `0001-{date}-{sha}-foo.bar`, `0002-{date}-{sha}-foo.bar`, etc in a new folder.

How can I do that?