v0.7.0 — Git Remote Helper
Highlights
Use Overleaf projects as native git remotes. Clone, pull, and push with standard git commands — no wrapper scripts needed.
git clone overleaf::https://www.overleaf.com/project/<id>
cd <project>
# edit files locally...
git add . && git commit -m "update"
git pushNew
git-remote-overleaf(#36) — a git remote helper implementing theimport/exportprotocol. Originally proposed in #15 by @bicheTortue.git clonedownloads the full project as a single commitgit pushuploads only changed/added files and deletes removed ones (incremental via marks)git pull/git fetchdetects up-to-date state without redundant downloads- Supports custom instances:
overleaf::https://my-instance.com/project/<id> - Auth via
OVERLEAF_SESSIONenv var or~/.olauthfile - Debug mode via
GIT_REMOTE_OVERLEAF_DEBUG=1 - State stored in
.git/overleaf/(marks + manifest)
How It Works
The helper speaks git's fast-import/fast-export protocol with mark-based tracking. On clone/fetch it downloads a project zip and emits a fast-import stream. On push it parses the fast-export stream to determine file modifications and deletions, then calls the Overleaf API to apply them.
Improved
- README restructured — extracted MCP docs to
docs/MCP.mdand git remote docs todocs/GIT-REMOTE.md - Landing page (
docs/index.html) updated with dynamic badges, git remote feature, and MCP section SKILL.mdupdated with git remote, MCP, comments, and "when to use which mode" decision table
Install
After npm i -g @aloth/olcli, the binary git-remote-overleaf is on PATH. Any overleaf:: URL is automatically handled.