A small, interactive CLI tool (built with Gum + Git) to keep a local folder and an Overleaf project in sync.
Use VS Code (or any editor) to write your LaTeX locally, while this script:
- Clones or connects to your Overleaf Git project
- Auto-commits local changes
- Pulls remote changes from Overleaf
- Pushes everything back on a configurable interval
All behind a friendly UI.
- bash
- git
- Gum (for the fancy TUI prompts)
-
Copy the script into your repo (e.g., as
overleaf_autosync.sh), or clone this repo. -
Install Gum.
In Overleaf:
- Open your project
- Go to Menu → Git
- Copy the Git URL (looks like
https://git@git.overleaf.com/<project-id>)
You can paste that directly into the script when prompted.
From the directory where the script lives:
./overleaf_autoupdate.shThe script will start an interactive Gum-based setup. Just follow the on-screen instructions.
- For big binary files or very large projects, frequent auto-commits + pushes may be problematic.
