Is there any way to log 'git hash' in hydra?

Viewed 43

I want to control version of experiment configuration files with hydra and dvc without uploading original config files to git.
Hydra does control config, and dvc controls version. But Hydra does not specify which 'code version' is needed to reproduce experiment. And I don't want to add 'git hash logging code' in every experiments.

Is there any way to log git hash to hydra log in default? thanks in advance

1 Answers
Related