This package has been deprecated

Author message:

该包已废弃,请使用 pull-sparse (https://www.npmjs.com/package/pull-sparse)

git-clone-sparse
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

git-clone-sparse

指定要clone的目录,而不是整个项目clone

usage

import clone from 'git-clone-sparse';

clone('you git registry url', {
  outputDir: path.resolve('.'), // 默认为'.'
  targetDir: 'packages/project-a', // 默认为''
  renameTargetDir: '', // 默认不修改目录名
  // withDotGit: true, // 默认为false,即不附带.git目录
  branch: 'v1.0.0', // 默认为master
});

Readme

Keywords

none

Package Sidebar

Install

npm i git-clone-sparse

Weekly Downloads

1

Version

1.0.8

License

ISC

Unpacked Size

6.65 kB

Total Files

5

Last publish

Collaborators

  • juln