Socket
Socket
Sign inDemoInstall

gitclone

Package Overview
Dependencies
8
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gitclone

Clone a Github repository with only `username/repo`. Support CLI and Promise.


Version published
Weekly downloads
5
decreased by-91.53%
Maintainers
1
Install size
168 kB
Created
Weekly downloads
 

Changelog

Source

1.0.4 - 2014-11-11

  • fix -b|--branch, not works
  • normalize dotfiles & package.json
  • add sliced as dep because of "This function has too many parameters. (4)", LOL ;p
  • add doc comments
  • add jshint as devDep

Readme

Source

gitclone NPM version Build Status Dependency Status

Clone a Github repository with only username/repo and support options. Support CLI and Promise.

Install Nodei.co stats

Install with npm

$ npm install gitclone -g

Flags

Flags can be used in any order.

  • -d|--dest {String} local destionation path
  • -r|--repo {String} the repository to clone
  • -b|--branch {String} the branch to clone
  • -s|--ssh {Boolean} clone via SSH or HTTPS

CLI Usage

$ gitclone gulpjs/gulp
$ gitclone tunnckoCore/koa-better-body --branch v1.0.0
$ gitclone substack/minimist --dest cmds
$ gitclone userName/myAwesomeRepo --ssh --dest awesomeRepo
$ gitclone --branch v6.0.0 --repo assemble/assemble --ssh --dest mysite

Usage as module

var gitclone = require('./index');
var assert = require('assert');

//gitclone(repository, destination, branch, ssh)
var clone = gitclone('tunnckoCore/week-seconds')

clone
  .then(function(res) {
    //=> res == [command, repository, destination, branch]
    assert(res[1] === 'tunnckoCore/week-seconds') //repository
  })
  .catch(console.error)

Authors & Contributors author tips

Charlike Mike Reagent

License MIT license

Copyright (c) 2014 Charlike Mike Reagent, contributors.
Released under the MIT license.

Keywords

FAQs

Last updated on 11 Nov 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc