Push a directory to a remote branch
Last updated 9 months ago by jakxz .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @jakxz/push-dir 
SYNC missed versions from official npm registry.


Version Build status

Push the contents of a directory to a remote branch

  • No messing around with .gitignore (no need to commit the directory)
  • Perfect for pushing a dist/build directory to gh-pages


npm install push-dir


push-dir --dir=build --branch=gh-pages


Usage: push-dir {OPTIONS}

Required Options:

The name of the directory whose contents will be committed to branch

The name of the remote branch to push to

Advanced Options:

The name of the remote to push to (defaults to origin)

Whether to delete the local branch after creating

Force the name of the local branch that is pushed to the remote branch

Whether to attempt push even if git unclean

Whether to override a local branch of the same name, if exists

Alias for both --allow-unclean and --overwrite-local

Display stdout and stderr from internal commands

Current Tags

  • 0.4.1                                ...           latest (9 months ago)

1 Versions

  • 0.4.1                                ...           9 months ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (1)
Dependents (0)

Copyright 2014 - 2017 © taobao.org |