Bakhtina Sofya b84cb877be 1st comm | 2 周之前 | |
---|---|---|
.. | ||
test | 2 周之前 | |
README.md | 2 周之前 | |
index.js | 2 周之前 | |
package.json | 2 周之前 |
Clone a git repository via shell command.
Install:
$ npm install git-clone
Require:
var clone = require('git-clone');
clone(repo, targetPath, [options], cb)
Clone repo
to targetPath
, calling cb
on completion.
Supported options
:
git
: path to git
binary; default: git
(optional).shallow
: when true
, clone with depth 1 (optional).checkout
: revision/branch/tag to check out (optional).© 2014 Jason Frame [ @jaz303 / jason@onehackoranother.com ]
Released under the ISC license.