Giter VIP home page Giter VIP logo

gdrive-lfs's Introduction

Custom transfer agent for Git-lfs which uses Google Drive as storage

When you build it, installer NSIS installer will be created

  • installs GoogleDriveLFS.exe into program files
  • sets up git config in following manner
[lfs "customtransfer.gdrivelfs"]
	path = C:\\Program Files (x86)\\GoogleDriveLFS\\GoogleDriveLFS.exe
[lfs "https://drive.google.com"]
	standalonetransferagent = gdrivelfs

Repository setup

  1. Create .lfsconfig in the root with

    [lfs]
    url = https://drive.google.com
    
  2. Create service account in Google console

    https://help.talend.com/en-US/components/8.0/google-drive/how-to-access-google-drive-using-service-account-json-file-a-google

  3. Download service account settings as JSON

  4. Save it as .gdrivelfs in the root of repository

  5. Open it and add "drive_id": XXX to the end

    Drive id can be found in URL when you open google drive

Example .gdrivelfs

{
  "type": "service_account",
  "project_id": "XXXXXXXXXXXX",
  "private_key_id": "XXXXXXXXXXXX",
  "private_key": "XXXXXXXXXXXXXXXXX\n",
  "client_email": "[email protected]",
  "client_id": "XXXXXXXXXXXX",
  "auth_uri": "https://accounts.google.com/o/oauth2/auth",
  "token_uri": "https://oauth2.googleapis.com/token",
  "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
  "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/googledrivelfs%40XXXXXXXXXXXX.iam.gserviceaccount.com",
  "universe_domain": "googleapis.com",
  "drive_id": "000005QfFhUSAAAAAAA"
}

gdrive-lfs's People

Contributors

ondrejpetrzilka avatar

Stargazers

Andrew Medvedskiy avatar

Watchers

 avatar sc8di 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.