skip to navigation
skip to content

git-gdrive 1.0.2

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.


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"


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

pip install git-gdrive
git-gdrive auth


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 []
   1fb8c00 patch 2 []

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
File Type Py Version Uploaded on Size
git-gdrive-1.0.2.tar.gz (md5) Source 2016-01-15 5KB