Git is not only a great tool to version control your code but also Latex files. Stackoverflow user yoda provides some excellent tipps for combining Latex and git. If you are looking for a way to tag your pdf files with the git hash or the most recent commit date, you might want to take a look at this Latex package. I use it to tag my pdfs with the corresponding git hash. That makes it hopefully easier in the future to match printouts to specific git commits.