Giter VIP home page Giter VIP logo

git-gdrive's Introduction

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

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

git-gdrive's People

Contributors

primiano avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.