Clone a git repository via shell command.
Install:
$ npm install git-clone
Require:
var clone = require('git-clone');
Clone repo
to targetPath
, calling cb
on completion.
Supported options
:
git
: path togit
binary; default:git
(optional).shallow
: whentrue
, clone with depth 1 (optional).checkout
: revision/branch/tag to check out (optional).
© 2014 Jason Frame [ @jaz303 / [email protected] ]
Released under the ISC license.