V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
sorrycc

magicclone, 更灵活地 clone github repo

  •  
  •   sorrycc ·
    sorrycc · Apr 23, 2014 · 3418 views
    This topic created in 4400 days ago, the information mentioned may be changed or developed.
    不知大家是否和我一样,如果要 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 replies    1970-01-01 08:00:00 +08:00
    toctan
        1
    toctan  
       Apr 23, 2014 via iPhone
    轮子,呵呵

    https://hub.github.com
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3798 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 00:06 · PVG 08:06 · LAX 17:06 · JFK 20:06
    ♥ Do have faith in what you're doing.