The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champion
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

DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events