0.0.4 • Published 3 years ago

git-clone-repos v0.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

git-clone-repos

Clone multiple git repositories via shell command

Install

npm i git-clone-repos

Usage

const clone = require('git-clone-repos');

(async() => {
  const options = {
    repos: [
      'git@github.com:alex-page/alexpage.com.au.git',
      'git@github.com:alex-page/harmonograph.art.git',
    ],
    destination: './.repo/'
  };

  await clone(options);
});

API

clone({repos, destination, depth?, isTreeless?})

repos

Type: array

Array of git repository URLs. can be HTTPS https://github.com/alex-page/alexpage.com.au.git or SSH git@github.com:alex-page/alexpage.com.au.git.

destination

Type: string

Set the destination for the cloned repositories.

depth

Type: number

The depth to clone the repository.

isTreeless

Type: Boolean

If the cloned repository is treeless --filter=tree:0.

Related

git-clone https://www.npmjs.com/package/git-clone

0.0.3

3 years ago

0.0.4

3 years ago

0.0.1

3 years ago

0.0.2

3 years ago

0.0.0

3 years ago