I'm grepping code in git history using the following command:
git grep "foo" $(git rev-list --all)
It's returning a list where each line begins with a king of hash:
27a7c352c1d7e5fde63f7c8857900271abc0a626:LogsController.php: $foo = "Hello World!";
c70fab1b7b7e67734839855eff34d744ec1fbcd9:LogsController.php: $foo = "Hello World!";
28a7bfb582e903af5019e2e1eaa1587a7817ec1b:LogsController.php: $foo = "Hello World!";
How to view the original full file from one of these hashes ?