tar your git repository and upload to cloud for node.
Installation
For node:
npm install gittar-cloud
For CLI:
npm install -g gittar-cloud
Using Dropbox
- Go to Dropbox My apps page.
- Create an app.
- In OAuth 2 section, Generated access token.
- Paste token into ~/.gittar/client_secret.json
Using Google Drive
- Follow this link to Turn on the Drive API in Step 1.
- Move token file to ~/.gittar/
CLI Usage
gtcloud <type> <tar-name> <source>
For Dropbox:
gtcloud dropbox gittar .
For Google Drive:
gtcloud gdrive gittar .
Node Usage
For Dropbox:
const { gtcDrop } = require('gittar-cloud');
gtcDrop('gittar', '.');
For Google Drive:
const { gtcDrive } = require('gittar-cloud');
gtcDrive('gittar', '.');