The pIT

Jackson Hall 011
35 Fifth Field Company Lane

x32442

+1 613-533-2442

Live Chat

Start a live chat with one of our techs

icon_map
The pIT

Jackson Hall 011
35 Fifth Field Company Lane

icon_phone
x32442

+1 613-533-2442

icon_chat
Live Chat

Start a live chat with one of our techs

You are here:
< Back

Reduce Repository Size

Git repositories become larger over time. When large files are added to a Git repository:

  • Fetching the repository becomes slower because everyone must download the files.
  • They take up a large amount of storage space on the server.
  • Git repository storage limits can be reached.

Rewriting a repository can remove unwanted history to make the repository smaller. We recommend git filter-repo over git filter-branch and BFG.

Rewriting repository history is a destructive operation. Make sure to back up your repository before you begin. The best way back up a repository is to export the project.