Over my text I apply version control via git and I use the
.gitignore file to place any file that is autogenerated on "compile" from tex to pdf.
Sometimes is nessasary to wipe out all theese file and keep the one you actually really need, because all these files are recorded in
.gitignore one I want some magical way to do that. How is possible?
I usually keep the
.bib files for bibliography and
.tex for the actual content, also I keep and
.gif files for my text's image. My
*.blg *.out *.pdf *.log *.bbl *.aux *.run.xml *.synctex.gz *.toc *-blx.bib *.swp qt_temp.* assets/.~lock.*# dummy_for_stackeschange.* sample*
I "compile" using TexStudio that runs the following compilation command:
xelatex -8bit -synctex=1 -interaction=nonstopmode --shell-escape %.tex
The tree structure is of the tracked files looks like:
|-- . |--- content |----- img1.png |----- ... |----- some other image.png |--- material.bib |--- assay.tex |--- .gitignore