Gitsym是一款通过git符号链接的进行大文件处理的软件,其目的是从修订控制中分离出庞大的文件缓存。
特性:
Clonesofthesourcerepositoryaresmallandfastbecausenobinariesaretransferred,yetfullyfunctionalwithcompletemetadataandincrementalretrieval(gitclone--depthhaslimitedgranularityandcouplesmetadatatocontent).
git-bisectworksproperlyevenwhenversionsofthebinaryfileschangeovertime.(Werecommendinstallingagit-sym-post-checkout-hook,incasetheresourceshavenotbeencachedalready.)
selectivecontrolofwhichlargefilestopullintothelocalstore
Localfatobjectstorescanbesharedbetweenmultipleclones,evenbydifferentusers.
caneasilysupportfatobjectstoresdistributedacrossmultiplehosts,andpotentiallyanywhereintheworld
dependsonlyonstockPythonandsimpleUNIXcommands
安装:
您可以在您的$PATH中通过调用git-sym运行这个git命令。
ln -sf `pwd`/git-sym ~/bin/git-sym或者,您也可以直接运行:
python git-sym -h基本用法:
repo用户
git-sym showgit-sym updaterepo所有者
git-sym link --add my_big_file.gifgit commit -m 'git-sym added'ls -l my_big_file.gif或者更明确,利用规则检索
ln -sf .git_sym/my_big_data.v123.db my_big_data.dbgit add my_big_data.dbgit commitcat <<EOF >> git_sym.makefilemy_big_data.v123.db: wget https://www.somewhere.com/my_big_data.v123.dbEOFgit-sym update
评论