gitsubclone

0.0.1 • Public • Published

Gitsubclone

Gitsubclone is a simple script to easily clone one or more subdirectories of a github repo without needing to clone the whole repository itself.

For example, running:

gitsubclone https://github.com/cirosantilli/test-git-partial-clone-big-small-no-bigtree small

will clone the small subdirectory of the test-git-partial-clone-big-small-no-bigtree repository to new folder test-git-partial-clone-big-small-no-bigtree

Installation

npm install -g gitsubclone

Usage

gitsubclone <options> [repo] [subdirectories...]

Options

Option Alias Description
--help -h Show help
--keep-git -k Keep .git folder from cloned subdirectories
--base-path -b Base path to clone subdirectories from
--output-path -o Output path to clone subdirectories to. Defaults to the name of the cloned repository

Readme

Keywords

none

Package Sidebar

Install

npm i gitsubclone

Weekly Downloads

1

Version

0.0.1

License

none

Unpacked Size

11.6 kB

Total Files

11

Last publish

Collaborators

  • gustavo-dev