Skip to content
/ wgit Public

use git to upload, delete, update files without requiring a local git repository

Notifications You must be signed in to change notification settings

Gyumeijie/wgit

Repository files navigation

wgit

use git to upload, delete, update files without requiring a local git repository

Install

$ npm install @gyumeijie/wgit

Usage

$ wgit upload --path path/to/upload

Configuration

wgit takes the ~/.wgitrc as its default configuration file

Take as example my personal repo https://github.com/Gyumeijie/assets, the following is the corresponding configuration:

{
  "github": {
    "branch": "master",
    "owner": "Gyumeijie",
    "basepath": "",
    "repo": "assets",
    "token": "78aea9df73b0ad1bb914608da706048d2f353957"
  }
}

As all things get ready, we now can fire the wgit upload --path path/to/upload to upload our files to the assets repo.

License

MIT © Gyumeijie

Reference

Related works