Git symGit 文件緩存分離組件
Git sym是一款通過git符號(hào)鏈接的進(jìn)行大文件處理的軟件,其目的是從修訂控制中分離出龐大的文件緩存。
特性:
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中通過調(diào)用git-sym運(yùn)行這個(gè)git命令。
ln -sf `pwd`/git-sym ~/bin/git-sym
或者,您也可以直接運(yùn)行:
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
或者更明確,利用規(guī)則檢索
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
