send-to-git-cli

1.0.0 • Public • Published

send-to-git-cli

Keeps in sync a folder and their files with a folder of a git repository.

Table of Contents

Install

Node.js v6.5 or newer is required.

Via the yarn client:

$ yarn global add send-to-git-cli

Via the npm client:

$ npm install --global send-to-git-cli

Example

Example to add the content of the folder ./some-files to git@github.com:some-org/some-repo.git on the folder public_html.

send-to-git --s "./some-files/**" --d ./public_html --r git@github.com:some-org/some-repo.git

Usage

--source, -s

Type: string Array
Required

Glob or array of globs to read.

--destination, -d

Type: string
Required

Relative destination path.

--remote, -r

Type: string
Required

git repository url.

--branch, -b

Type: string
Default: 'master'

Branch to add and push the changes.

--commit-message, -cm

Type: string
Default: 'Release'

Commit message for the changes.

Related

Contribute

Feel free to dive in! Open an issue or submit PRs.

send-to-git-cli follows the Contributor Covenant Code of Conduct.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i send-to-git-cli

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • ramasilveyra