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 creates a virtual environment under ~/.local/share/python-overleaf-git-unipi, installs the package there, and adds git-overleaf to your PATH through ~/.profile. 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.3.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.3-py3-none-any.whl (36.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: overleaf_git_unipi-1.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 fd48a20dcefa24cbb3b8cfa28264a3d7844c58befc51f219ca1913ebbbc08f0b
MD5 6f1fc050e945f66afd9f5138e7f106b9
BLAKE2b-256 d7aa5eea7bb3276de68cef182e746cf002b813ac63a6b8a9973b7af776a81ecf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for overleaf_git_unipi-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e2f3a50a6b60d0bc5054eb0afa39aa6ba9b29fda8fb7bb2d40e48d1c5353a76e
MD5 a3eb5654c169732ab01601e760900ad5
BLAKE2b-256 442d94b1cc5635e82d7ed240f89988c459a379840ba1b0e796a8a634f2891b91

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