One of the challenges I faced while building my LaTeX Writer project was implementing version control and project forking in a storage-efficient way.
A typical LaTeX project contains multiple files. Even a simple project usually has a "main.tex" file, bibliography files, images, style files, and other supporting documents. If I stored a complete copy of every file for every version or fork, storage requirements would grow rapidly.
Imagine a project with four files and ten versions. Storing the entire project for every version would mean storing the same files repeatedly, even when only one line changed. Forking would create an even bigger problem because every fork would require another complete copy of the project.
Instead of accepting this inefficiency, I started researching how large platforms solve the same problem. GitHub was the obvious inspiration.
Learning from GitHub







