sanjib-sen / WebLaTex

A complete alternative for Overleaf with VSCode + Web + Git Integration + Copilot + Grammar & Spell Checker + Live Collaboration Support. Based on GitHub Codespace and Dev container.
https://github.com/sanjib-sen/weblatex/generate
MIT License
1.04k stars 295 forks source link

Add gitignore #14

Open thodson-usgs opened 1 year ago

thodson-usgs commented 1 year ago

My collaborators had a tendency to accidentally commit PDF, which made it harder to incorporate their pull requests. Consider adding PDF to gitignore.

sanjib-sen commented 1 year ago

Good observation. Thanks. Although, I am not sure what will happen when a person not so good with gitignore suddenly finds that their PDFs are not updating after git sync! (Considering many people also commit their PDF's).

thodson-usgs commented 1 year ago

I'm okay making it (slightly) harder to commit a pdf, but that's up to you. Then perhaps ignore everything in PDF except the pdf's with

PDF/*
!PDF/*.pdf
thodson-usgs commented 1 year ago

My justification being that git stores the entire file for each commit---not a diff--- so a careless user will commit numerous pdfs during the lifecycle of a document, bloating the repo. But I also recognize the convenience of having the pdf accessible via github.