Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Pushing Zipped files into bitbucket

Ashalina Z
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 18, 2022

Hi all,

 

New to the community.

I have a folder that contains number of files that take lot of space.

These files are changed and push everyday as part of the development work.

Is that a good idea to zip these files before I push them back to external repo?

And is zipping safe for files data?

Also, when I pull the external repo to my machine, will the zipped files that were pushed be in the same state?

 

Thanks

1 answer

1 accepted

0 votes
Answer accepted
Erez Maadani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 18, 2022

Hey @Ashalina Z

I recommend you have a look at the git-LFS feature: https://support.atlassian.com/bitbucket-cloud/docs/use-git-lfs-with-bitbucket/

The zipping depends on the file types and used algorithm: text files size can be reduced significantly while binaries usually don't.  

Zipping is usually safe, but you should still check all your envs: dev, CI, CD, etc'. Some envs might have different zip clients/versions which might affect the zip/unzipping of the files.

My personal recommendation: don't push large files to your repo without using git-lfs. These files will be kept in your history even after you delete them which will quickly inflate your repo size and will cause issues when cloning the repo. If you don't want to work with git-lfs, consider using DB or uploading the files to binary repository.  

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events