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.4.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.4-py3-none-any.whl (36.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: overleaf_git_unipi-1.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 01e3e085f724e9ef031bcb9f6719f772b94fb99dd36353507dcf2a9389c4e525
MD5 2a1132f5b6ba436896d49200c8a1977a
BLAKE2b-256 a086db8d6517c8f97976aba890918c47040312bf53104a5552e681c9b4b13447

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for overleaf_git_unipi-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f292cf25f5604198fc24d9cf5b4f4fb22b04478cd98eeb9def07127d2a40d1b7
MD5 3cb0b7999eaf9859e53e5cd7837e5cab
BLAKE2b-256 42053a07b05d2c2833db9e22f850221883756566f085a3a9034037f6d7e3eba5

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