Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
e322676e
Commit
e322676e
authored
Oct 08, 2021
by
John Lyttle
Committed by
Amy Qualls
Oct 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update reducing-repo-size page with more info
parent
0340c12f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
doc/user/project/repository/reducing_the_repo_size_using_git.md
...er/project/repository/reducing_the_repo_size_using_git.md
+7
-1
No files found.
doc/user/project/repository/reducing_the_repo_size_using_git.md
View file @
e322676e
...
@@ -18,7 +18,7 @@ Such problems can be detected with [git-sizer](https://github.com/github/git-siz
...
@@ -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.
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)**
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
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:
WARNING:
Rewriting repository history is a destructive operation. Make sure to back up your repository before
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:
...
@@ -63,6 +63,12 @@ To purge files from a GitLab repository:
git clone
--bare
--mirror
/path/to/project.bundle
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
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
trying to remove internal refs, we rely on the
`commit-map`
produced by each run to tell us
which internal refs to remove.
which internal refs to remove.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment