Skip to main content

A client to bridge GIT and your overleaf projects (community edition)

Project description

Python-overleaf-git-unipi is a small project derived from [Python-sharelatex](https://gitlab.inria.fr/sed-rennes/sharelatex). It has been slightly modified and adapted to suit the need for the local installation at https://overleaf.unipi.it, but should work against any Overleaf instance.

See [FAQ.md](FAQ.md) for answers to common installation and synchronization questions.

## Installation

The recommended way to install or update git-overleaf is to run the installer directly from GitHub:

`sh curl https://raw.githubusercontent.com/robol/python-overleaf-git-unipi/refs/heads/main/install.sh | bash `

The script requires Python 3.9 or newer, creates a virtual environment under ~/.local/share/python-overleaf-git-unipi, and installs the package there. It adds git-overleaf to your PATH through the startup file for your shell (~/.zshrc for the default macOS shell). The script can be run multiple times to update the git-overleaf module.

## Quick usage

Clone an Overleaf project by passing its project URL:

`sh git overleaf clone https://overleaf.unipi.it/project/<project-id> `

You can also choose the local directory name:

`sh git overleaf clone https://overleaf.unipi.it/project/<project-id> my-paper `

Inside the cloned project directory, pull changes from Overleaf with:

`sh git overleaf pull `

Push committed local changes back to Overleaf with:

`sh git overleaf push `

Before running git overleaf pull or git overleaf push, the git working tree must be clean: there must be no uncommitted changes and no untracked files. Check with:

`sh git status `

Commit or stash changes you want to keep before synchronizing. The pull and push commands will only run with a clean tree, that you can always obtain by running.

`sh git clean -fd `

Be careful: git clean -fd permanently deletes untracked local files and directories. Run git clean -fdn first to preview what would be deleted.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

overleaf_git_unipi-1.1.6.tar.gz (36.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

overleaf_git_unipi-1.1.6-py3-none-any.whl (36.4 kB view details)

Uploaded Python 3

File details

Details for the file overleaf_git_unipi-1.1.6.tar.gz.

File metadata

  • Download URL: overleaf_git_unipi-1.1.6.tar.gz
  • Upload date:
  • Size: 36.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for overleaf_git_unipi-1.1.6.tar.gz
Algorithm Hash digest
SHA256 b3b417002d54200848c89a418ffc92c161cd90b999717480a1a00697e4934b39
MD5 f0b5626e7ae7ceaf9aa1afe2db2da785
BLAKE2b-256 668f2fe7cdef3d8868bb43fe627da2dc957bbfd8107b09e842162e0981e2e0ef

See more details on using hashes here.

File details

Details for the file overleaf_git_unipi-1.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for overleaf_git_unipi-1.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 dc3f7bfe6ca0e2c8eeb518cf270e2ecd05aaff5a4f0d3cf80b08a39b2ac7f1de
MD5 de448e6de21a86e1a306f433f92e3a62
BLAKE2b-256 bf361ab0389ffb27b0dcfedb2e24bb5c0e5f0242f7c0075f38f392927d5ce528

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page