use git to upload, delete, update files without requiring a local git repository
$ npm install @gyumeijie/wgit
$ wgit upload --path path/to/upload
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.
MIT © Gyumeijie