微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Git sym Git 文件缓存分离组件

程序名称:Git sym

授权协议: MIT

操作系统: 跨平台

开发语言: Python

Git sym 介绍

Git sym是一款通过git符号链接的进行大文件处理的软件,其目的是从修订控制中分离出庞大的文件缓存。

特性:

  • Clones of the source repository are small and fast because no binaries are transferred, yet fully functional with complete Metadata and incremental retrieval (git clone –depth has limited granularity and couples Metadata to content).

  • git-bisect works properly even when versions of the binary files change over time. (We recommend installing a git-sym-post-checkout-hook, in case the resources have not been cached already.)

  • selective control of which large files to pull into the local store

  • Local fat object stores can be shared between multiple clones, even by different users.

  • can easily support fat object stores distributed across multiple hosts, and potentially anywhere in the world

  • depends only on stock Python and simple UNIX commands

安装:

您可以在您的$ PATH中通过调用git-sym运行这个git命令。

ln -sf `pwd`/git-sym ~/bin/git-sym

或者,您也可以直接运行:

python git-sym -h

基本用法

repo用户

git-sym show
git-sym update

repo所有者

git-sym link --add my_big_file.gif
git commit -m 'git-sym added'
ls -l my_big_file.gif

或者更明确,利用规则检索

ln -sf .git_sym/my_big_data.v123.db my_big_data.db
git add my_big_data.db
git commit
cat <<EOF >> git_sym.makefile
my_big_data.v123.db:
        wget http://www.somewhere.com/my_big_data.v123.db
EOF
git-sym update

Git sym 官网

https://github.com/cdunn2001/git-sym

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐