A little script to ease the process of cloning GitHub repository within a predefined repository.
$ npm install mklabs/git-github -g
The git-github
command can be used directly, or using git github
.
$ git github <username>/<repo>
Example
$ git github nodejs/docs
... Cloning nodejs/docs in /home/mk/src/ ...
>> git clone git@github.com:nodejs/docs.git /home/mk/src/nodejs/docs
Cloning into '/home/mk/src/nodejs/docs'...
remote: Counting objects: 259, done.
remote: Total 259 (delta 0), reused 0 (delta 0), pack-reused 258
Receiving objects: 100% (259/259), 67.58 KiB | 0 bytes/s, done.
Resolving deltas: 100% (124/124), done.
Checking connectivity... done.