How to disable delta compression on Bitbucket Server server for a particular file type
目的
Git is notoriously bad at handling binary files. This is one step you can take to manage large repositories made up from code bases that have to track huge binary assets. For binary files that change significantly – and not just some meta data headers – the delta compression is probably going to be useless so the suggestion is to turn delta off for those files to avoid the unnecessary delta compression work as part of the repack.
ソリューション
- Find the repo ID number by going to repository settings of the repo you would like to add this parameter to. There you will find the "Location on disk".
- Edit the
.gitattributes
file in<Bitbucket Server_Home>/data/repositories/<repo_ID_number>/info/attributes/.gitattributes
. If the directory and file do not exist please create them. - Add the following line to the
.gitattributes
.
Disable Compression of .jpg Files
*.jpg binary -delta
Checkout this page for more information on .gitattributes
.
関連コンテンツ
Please read this blog for more information on how to handle big repositories.
最終更新日: 2016 年 2 月 23 日
Powered by Confluence and Scroll Viewport.