• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

square/git-fastclone: git clone --recursive on steroids

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

square/git-fastclone

开源软件地址:

https://github.com/square/git-fastclone

开源编程语言:

Ruby 99.2%

开源软件介绍:

git-fastclone

Twitter: @longboardcat13 License Build Status Gem Version

git-fastclone is git clone --recursive on steroids.

Why fastclone?

Doing lots of repeated checkouts on a specific machine?

Repository 1st Fastclone 2nd Fastclone git clone cp -R
angular.js 8s 3s 6s 0.5s
bootstrap 26s 3s 11s 0.2s
gradle 25s 9s 19s 6.2s
linux 4m 53s 1m 6s 3m 51s 29s
react.js 18s 3s 8s 0.5s
tensorflow 19s 4s 8s 1.5s

Above times captured using time without verbose mode.

What does it do?

It creates a reference repo with git clone --mirror in /var/tmp/git-fastclone/reference for each repository and git submodule linked in the main repo. You can control where it puts these by changing the REFERENCE_REPO_DIR environment variable.

It aggressively updates these mirrors from origin and then clones from the mirrors into the directory of your choosing. It always works recursively and multithreaded to get your checkout up as fast as possible.

Detailed explanation here.

Usage

gem install git-fastclone
git fastclone [options] <git-repo-url>

-b, --branch <branch>   Clone a specific branch
-v, --verbose           Shows more info
-c, --color             Pretty colors!

Change the default REFERENCE_REPO_DIR environment variable if necessary.

Cygwin users need to add ~/bin to PATH.

How to test?

Manual testing:

ruby -Ilib bin/git-fastclone <git url>

Compatible with Travis and Kochiku.

Contributing

If you would like to contribute to git-fastclone, you can fork the repository and send us pull requests.

When submitting code, please make every effort to follow existing conventions and style in order to keep the code as readable as possible.

Before accepting any pull requests, we need you to sign an Individual Contributor Agreement (Google form).

Acknowledgements

thoughtbot/terrapin - jyurek and collaborators

robolson

ianchesal

mtauraso

chriseckhardt

License

Copyright 2015 Square Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
ocaml/opam: opam is a source-based package manager. It supports multiple simulta ...发布时间:2022-06-11
下一篇:
ingydotnet/git-subrepo发布时间:2022-06-11
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap