V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
sorrycc
V2EX  ›  分享创造

magicclone, 更灵活地 clone github repo

  •  
  •   sorrycc ·
    sorrycc · 2014-04-23 20:04:46 +08:00 · 2575 次点击
    这是一个创建于 3660 天前的主题,其中的信息可能已经有所发展或是发生改变。
    不知大家是否和我一样,如果要 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 [email protected]:sorrycc/magicclone.git

    2. 搜索 clone
    $ mc clone magicclone

    此外,还可以根据 orgination, username 进行 clone
    1 条回复    1970-01-01 08:00:00 +08:00
    toctan
        1
    toctan  
       2014-04-23 20:07:19 +08:00 via iPhone
    轮子,呵呵

    https://hub.github.com
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1761 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 16:19 · PVG 00:19 · LAX 09:19 · JFK 12:19
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.