Skip to main content

git-gdrive: format-patch / am over Google Drive

git-gdrive allows to use Google Drive as a way to exchange patches.

Designed to quickly exchange patches between different machines or to share with teammates.

git gdrive push is the equivalent of git format-patch + upload to gdrive.
git gdrive pull is the equivalent of download from gdrive + git am.

Installation

Linux / Mac

pip install --user git-gdrive

And add the following to you ~/.bashrc

# On Linux
export PATH="$PATH:$HOME/.local/bin"

# On Mac
export PATH="$PATH:$HOME/Library/Python/2.7/bin"

Windows

# If using depot_tools
cd C:\depot_tools\python276_bin\Scripts

pip install git-gdrive
git-gdrive auth

Examples

Pushing a set of patchset to GDrive

$ git gdrive push #<optional format-patch args>
Uploading a patch consisting of 2 commits (@{upstream}..HEAD):
   10309dc patch 1 [author@gmail.com]
   1fb8c00 patch 2 [author@gmail.com]

Uploading /git-drive/primiano-master-2016-01-15_01-03.patch

Upload successful. Use "git gdrive pull" to apply.

Pulling and applying a patchfile from GDrive

$ git gdrive pull
Select which file to pull and apply:
  1) primiano-master-2016-01-15_01-03.patch
  2) primiano-master-2016-01-15_00-17.patch
  3) primiano-master-2016-01-15_00-17.patch


Enter id or file name, just ENTER to pull 1): 1
Pulling /git-drive/primiano-master-2016-01-15_01-03.patch
Running git am -3 /tmp/tmptP1Swe

Metadata

Release files for git-gdrive 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for git-gdrive 1.0.2
File Size Uploaded Provenance
git-gdrive-1.0.2.tar.gz 6.0 kB Without provenance Details

Release files / git-gdrive-1.0.2.tar.gz

Download URL git-gdrive-1.0.2.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8908dcf03b1e4735425a6ebaa804e8f7afa1a3d9420b613f4e7370ecf3769720
BLAKE2b-256 checksum
How to use checksums
8e7745837af36b78e1b54d3b11843ae45f937444fbea57547c4c5c5fc2281a24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for git-gdrive 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page