Automatically include link to current git commit/SHA in compiled LaTeX pdf
This code lets you include an automatically updating link in a LaTeX compiled document
that points to the last commit in the branch currently checked out in the repository
.tex file used to compile the documents is saved.
This allows you to track exactly which version of your
.tex file was used to generate a given PDF.
Using Git you can then go back to the exact code used when compiling any saved or printed version of your document you find, no matter how long ago it was compiled. The commit SHA (the unique commit ID) will automatically update each time there is a new commit