Sync a LaTeX project with GitHub
In web mode a project can be tied to a GitHub repository. One click commits your changes and brings in the changes made on GitHub. This guide goes through connecting, publishing, syncing and conflicts.
What the sync does
A sync compares three states: your files in the browser, the files on GitHub and the state of the last sync. Files you changed are committed to the branch, files changed on GitHub are written into your project, and a file changed on both sides becomes a conflict that you decide.
The editor needs no Git on your computer. It talks to the GitHub API from the browser and never force-pushes: if the branch moved while a sync was running, it stops and asks you to sync again.

Connect your GitHub account
Open a project in web mode and click the GitHub button in the top bar.

Click “Sign in with GitHub” and allow the access on the GitHub page that opens. If you prefer a token, click “Use a personal access token instead”, paste the token and click “Connect”.

The panel now shows “Connected as” with your GitHub name. The connection holds for every web project in this browser.
Publish a project as a new repository
In the GitHub panel, click “Create new repository”.
Check the repository name; the editor suggests the project name. “Private repository” is ticked, so only you see the repository until you change that on GitHub.

Click “Create & publish”. The editor creates the repository, commits all project files and links the project to it.
Link a project to an existing repository
In the GitHub panel, click “Link existing repository”.
Type part of the name into the search field and click the repository. Then choose the branch.

Click “Link & sync”. The first sync brings both sides together: files that exist on one side only are copied to the other, and files that differ show up as conflicts.
Sync your changes
Open the GitHub panel. The status line says what is waiting: local changes, changes on GitHub, or “Everything in sync”.
Write a commit message if you want one. Without it the commit gets a message with the date and time.
Click “Sync now”. A notification says how many files were pushed and pulled.
Resolve conflicts
A conflict is a file that changed in the editor and on GitHub since the last sync. The sync lists these files and asks you. A file in that list is not overwritten until you have chosen.
Choose for each file: “Keep local” keeps your version and commits it, “Use GitHub version” replaces your file, “Keep both” keeps your file and saves the GitHub version next to it under a name such as
main.remote-3f9c2ab.tex.
Click “Apply & sync”. The sync runs again with your choices.
Open a repository as a new project
On the start screen of web mode, click “Open from GitHub”.

Pick the repository and the branch and click “Import as new project”. The editor downloads the files into a new project that is already linked, so the next sync goes to the same repository.

What is synced and what is not
Build files stay out of the repository: .aux, .log, .out, .toc, .bbl, .bcf, .synctex.gz and similar ones, and the folder output/. A file larger than 25 MB is skipped, and the panel says how many files were skipped.
“Unlink repository” ends the link and leaves your files and the repository as they are. The sync exists in web mode only; in bridge mode your files are on your disk, where Git itself can manage them.
Where it works
- Web mode: runs in the browser, files stay in the browser
What you need
- A GitHub account. You sign in with GitHub or enter a personal access token.