A gitignore file for Python (Sage) and LaTeX
The main tools I use on a day to day basis are Python/Sage and LaTeX. Since learning to love git and even more so github my usual workflow when starting a new project is something like this:
Once I run the git status that’s when I realise that I’ve now got a bunch of files I don’t want to commit .aux
, .pyc
etc…
I then normally throw whatever those files are to a .gitignore
file.
Despite teaching my students to never do anything twice and to always script whatever can be scripted: I have never actually put a .gitignore
file together that has everything in it.
So here’s my first attempt.
This is basically a modification of the Python github .gitignore
and a slight tweak of this gist (there doesn’t seem to be a bespoke LaTeX .gitignore as an option when you create a repository).
You can find this at this gist.
If anyone can suggest anything I’m missing it’d be great to hear it :)