1.0.0 • Published 8 years ago
git-clone-promise v1.0.0
git-clone-promise
clone a git repository via shell command , promise
Installation
$ npm install git-clone-promiseor:
$ yarn add git-clone-promiseUsage
const clone = require('git-clone-promise')
// const repo = 'https://github.com/huoqishi/x-html.git'
// or:
const repo = 'git@github.com:huoqishi/x-html.git'
gitClone(repo, './test').then(() => {
console.log('ok')
})API
clone
clone(repo, savePath, [options])
clone repo to savePath, return promise on completion.
options
git: path togitbinary; default:git(optional).shallow: whentrue, clone with depth 1 (optional).checkout: revision/branch/tag to check out (optional).
Copyright & License
© huoqishi & 火骑士空空
Released under the MIT.
1.0.0
8 years ago