Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Reduce repo size

subhojit1480 August 10, 2023

The size of the repo showing is 2.57 GB.

Could you delete large files from old commit history so size will be decreased?

2 answers

2 accepted

1 vote
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 11, 2023

Hi @subhojit1480,

I ran a git gc for the repo that was over 2 GB and its size has been reduced a bit.

The Atlassian team cannot remove any large files from your repo, this is something that you need to do yourself (e.g. with BFG repo cleaner like Mikael suggested) and we can then trigger a git gc for your repo to remove any unreachable commits after history rewrite.

You can check this post of mine for more details on how to identify large files and what options you have.

Please feel free to reach out if you have any questions!

Kind regards,
Theodora

1 vote
Answer accepted
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 10, 2023

Have a look at this KB on how to reduce the repo size. You can either use a BFG Repo Cleaner to removes files that are over a certain size, or use git filter-branch to rewrite the history. I have used BFG in the past to do this.

subhojit1480 August 11, 2023

Thanks

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events