🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@jakxz/push-dir

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jakxz/push-dir

Push a directory to a remote branch

latest
Source
npmnpm
Version
0.4.1
Version published
Weekly downloads
3
50%
Maintainers
1
Weekly downloads
 
Created
Source

push-dir

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

install

npm install push-dir

example

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

usage

Usage: push-dir {OPTIONS}

Required Options:

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

--branch
The name of the remote branch to push to

Advanced Options:

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

--cleanup
Whether to delete the local branch after creating

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

--allow-unclean
Whether to attempt push even if git unclean

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

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

--verbose
Display stdout and stderr from internal commands

FAQs

Package last updated on 13 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts