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.5.tar.gz (36.8 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.5-py3-none-any.whl (36.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: overleaf_git_unipi-1.1.5.tar.gz
  • Upload date:
  • Size: 36.8 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.5.tar.gz
Algorithm Hash digest
SHA256 bed8c4d4a1449ab5181411d246f7363a53ab4cad43b18a846675bcfc691b43a6
MD5 9d14b64fd9c67f4d3ec4d67db61a8c32
BLAKE2b-256 3a30f7d69935f4a1084d8fa4d623cd126d1fd9ad692b09aab0df07b1f9ef040e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for overleaf_git_unipi-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 93e37f42811968898dff7fab6ebc521d5e4f731cb251502a55ad4eb13acf13ce
MD5 fcc88b586e3118e4982379ea133f8041
BLAKE2b-256 a944ae2d0c2cbcf9900670ae7d18176491b0d10df9769f8cb05863239030b66a

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