Socket
Book a DemoInstallSign in
Socket

gh-clone

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gh-clone

git clone a repo with only username/repo.

Source
npmnpm
Version
0.2.1
Version published
Weekly downloads
99
65%
Maintainers
1
Weekly downloads
 
Created
Source

gh-clone NPM version Build Status

git clone a repo with only username/repo.

Install globally with npm:

npm i -g gh-clone

Usage

Let's say you want to clone micromatch:

$ clone jonschlinker/micromatch <commands>

flags

  • -r|--repo: the repository to clone
  • -b|--brach: the branch to clone
  • -d|--dest: the local destination

Example: branch

Flags can be used in any order. If you want the dev branch of micromatch (when one exists):

$ clone jonschlinker/micromatch -b dev

Example: destination

If you want to save to the foo directory

$ clone jonschlinker/micromatch -d foo

Example: branch and destination

If you want to save the dev branch to the foo directory

$ clone jonschlinker/micromatch -b dev -d foo

Run tests

Install dev dependencies.

npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright (c) 2015 Jon Schlinkert
Released under the MIT license

This file was generated by verb-cli on March 04, 2015.

Keywords

clone

FAQs

Package last updated on 04 Mar 2015

Did you know?

Socket

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