Share your code.
push-dirpublic
push-dir
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 togh-pages
install
npm install push-dir
example
push-dir --dir=build --branch=gh-pages
usage
Usage: push-dir {OPTIONS} Required Options: --dirThe name of the directory whose contents will be committed to branch --branchThe name of the remote branch to push to Advanced Options: --remoteThe name of the remote to push to (defaults to origin) --cleanupWhether to delete the local branch after creating --local-branch-nameForce the name of the local branch that is pushed to the remote branch --allow-uncleanWhether to attempt push even if git unclean --overwrite-localWhether to override a local branch of the same name, if exists --forceAlias for both --allow-unclean and --overwrite-local --verboseDisplay stdout and stderr from internal commands