How to disable delta compression on Stash server for a particular file type

'How Do I...' and 'How to...' Guide to Stash

このページの内容

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

目的

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 assetsFor 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.

ソリューション

  1. 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". 
  2. Edit the .gitattributes file in <Stash_Home>/data/repositories/<repo_ID_number>/info/attributes
  3. 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.

Last modified on Mar 15, 2022

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.