magicclone, 更灵活地 clone github repo

2014-04-23 20:04:46 +08:00
 sorrycc
不知大家是否和我一样,如果要 clone 一个库下来看看代码,先在 google 里搜下 "keyword:site:github.com",然后进入到 github 主页,在右侧找到 .git 的链接,再复制到命令行里 git clone。

为了简化这个流程,我写了 magicclone 工具。上面的步骤,只需要:
$ mc clone 库名


简单介绍下安装和使用,更多参见: https://github.com/sorrycc/magicclone

安装:
$ npm install mc -g

使用:

1. 精确 clone
$ mc clone sorrycc/magicclone
$ mc clone https://github.com/sorrycc/magicclone
$ mc clone git@github.com:sorrycc/magicclone.git

2. 搜索 clone
$ mc clone magicclone

此外,还可以根据 orgination, username 进行 clone
2598 次点击
所在节点    分享创造
1 条回复
toctan
2014-04-23 20:07:19 +08:00
轮子,呵呵

https://hub.github.com

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/109745

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX