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
b16517aa
Commit
b16517aa
authored
Jul 01, 2020
by
James Ramsay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add cache and Git LFS warnings
parent
bf2a7e22
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
doc/user/project/repository/reducing_the_repo_size_using_git.md
...er/project/repository/reducing_the_repo_size_using_git.md
+11
-0
No files found.
doc/user/project/repository/reducing_the_repo_size_using_git.md
View file @
b16517aa
...
...
@@ -25,6 +25,10 @@ Rewriting repository history is a destructive operation. Make sure to backup you
you begin. The best way back up a repository is to
[
export the project
](
../settings/import_export.md#exporting-a-project-and-its-data
)
.
NOTE:
**Note:**
Git LFS files can only be removed by an Administrator using a
[
rake task
](
../../../raketasks/cleanup.html
)
.
Follow
[
this issue
](
https://gitlab.com/gitlab-org/gitlab/-/issues/223621
)
for updates.
## Purge files from repository history
To make cloning your project faster, rewrite branches and tags to remove unwanted files.
...
...
@@ -92,6 +96,12 @@ To make cloning your project faster, rewrite branches and tags to remove unwante
[
Protected tags
](
../protected_tags.md
)
will cause this to fail. To proceed, you must remove tag
protection, push, and then re-enable protected tags.
1.
Manually run
[
project housekeeping
](
../../../administration/housekeeping.html#manual-housekeeping
)
NOTE:
**Note**
Project statistics are cached for performance. You may need to wait 5-10 minutes
to see a reduction in storage utilization.
## Purge files from GitLab storage
To reduce the size of your repository in GitLab, you must remove GitLab internal references to
...
...
@@ -188,6 +198,7 @@ You will receive an email once it has completed.
When using repository cleanup, note:
-
Project statistics are cached. You may need to wait 5-10 minutes to see a reduction in storage utilization.
-
Housekeeping prunes loose objects older than 2 weeks. This means objects added in the last 2 weeks
will not be removed immediately. If you have access to the
[
Gitaly
](
../../../administration/gitaly/index.md
)
server, you may run
`git gc --prune=now`
to
...
...
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