texgit is a preprocessor for accessing files from git repositories from LaTeX. It has two components, namely the Python package texgit and the LaTeX style texgit. Together, they enable you to automatically download git repositories, include files from these repositories in your LaTeX documents or even execute them and capture their outputs. The process is similar to BibTeX: The requests for repositories and files are collected from the LaTeX document during the first LaTeX run. This is done by the texgit LaTeX package (which stores the requests into the aux file). During this first LaTeX run, the contents of the requested files are returned as empty strings. Then the texgit Python program is executed, which downloads the repositories, executes programs in them if requested, and collects the files and outputs locally. During the second LaTeX run, these contents are available and can be included in the LaTeX document in any way you like.

For more information, see

Updated: