Commit c64f7311 authored by Amy Qualls's avatar Amy Qualls

Merge branch 'jlyttle-master-patch-73395' into 'master'

Update reducing-repo-size page with more info

See merge request gitlab-org/gitlab!71930
parents 0340c12f e322676e
......@@ -18,7 +18,7 @@ Such problems can be detected with [git-sizer](https://github.com/github/git-siz
Rewriting a repository can remove unwanted history to make the repository smaller.
We **recommend [`git filter-repo`](https://github.com/newren/git-filter-repo/blob/main/README.md)**
over [`git filter-branch`](https://git-scm.com/docs/git-filter-branch) and
[BFG](https://rtyley.github.io/bfg-repo-cleaner/).
[BFG](https://rtyley.github.io/bfg-repo-cleaner/).
WARNING:
Rewriting repository history is a destructive operation. Make sure to back up your repository before
......@@ -63,6 +63,12 @@ To purge files from a GitLab repository:
git clone --bare --mirror /path/to/project.bundle
```
1. Navigate to the `project.git` directory:
```shell
cd project.git
```
1. Using `git filter-repo`, purge any files from the history of your repository. Because we are
trying to remove internal refs, we rely on the `commit-map` produced by each run to tell us
which internal refs to remove.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment