How is a folder and all of its contests removed from a repository.

D_ December 9, 2019

Repositories have a 2GB size limit. To save space, how is an old or underused folder of source code removed from a repository of many source code folders?

1 answer

0 votes
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 9, 2019

Hello @D_,

You need to not only remove such files from the current state of the repo but also from its history to save space. This is called rewriting history, specifically filter-branch command. There're some tools like BFG which can help with this, but the exact steps depend on your actual scenario.

Hope this helps. Let me know if you have any questions.

Cheers,
Daniil

D_ December 11, 2019

The idea of "rewriting history" sounds intriguing. I will give it a go and report back.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events