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
08262a04
Commit
08262a04
authored
Jul 01, 2020
by
James Ramsay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve LFS rake task headings
parent
b16517aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
doc/raketasks/cleanup.md
doc/raketasks/cleanup.md
+2
-2
doc/user/project/repository/reducing_the_repo_size_using_git.md
...er/project/repository/reducing_the_repo_size_using_git.md
+6
-4
No files found.
doc/raketasks/cleanup.md
View file @
08262a04
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
GitLab provides Rake tasks for cleaning up GitLab instances.
GitLab provides Rake tasks for cleaning up GitLab instances.
## Remove unreferenced LFS files
from filesystem
## Remove unreferenced LFS files
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/36628) in GitLab 12.10.
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/36628) in GitLab 12.10.
...
@@ -42,7 +42,7 @@ Note that this Rake task only removes the references to LFS files. Unreferenced
...
@@ -42,7 +42,7 @@ Note that this Rake task only removes the references to LFS files. Unreferenced
later (once a day). If you need to garbage collect them immediately, run
later (once a day). If you need to garbage collect them immediately, run
`rake gitlab:cleanup:orphan_lfs_files`
described below.
`rake gitlab:cleanup:orphan_lfs_files`
described below.
##
Remove unreferenced LFS files
##
# Remove unreferenced LFS files immediately
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/36628) in GitLab 12.10.
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/36628) in GitLab 12.10.
...
...
doc/user/project/repository/reducing_the_repo_size_using_git.md
View file @
08262a04
...
@@ -26,8 +26,9 @@ you begin. The best way back up a repository is to
...
@@ -26,8 +26,9 @@ you begin. The best way back up a repository is to
[
export the project
](
../settings/import_export.md#exporting-a-project-and-its-data
)
.
[
export the project
](
../settings/import_export.md#exporting-a-project-and-its-data
)
.
NOTE:
**Note:**
NOTE:
**Note:**
Git LFS files can only be removed by an Administrator using a
[
rake task
](
../../../raketasks/cleanup.html
)
.
Git LFS files can only be removed by an Administrator using a
Follow
[
this issue
](
https://gitlab.com/gitlab-org/gitlab/-/issues/223621
)
for updates.
[
rake task
](
../../../raketasks/cleanup.md
)
. Removal of this limitation
[
is planned
](
https://gitlab.com/gitlab-org/gitlab/-/issues/223621
)
.
## Purge files from repository history
## Purge files from repository history
...
@@ -51,7 +52,8 @@ To make cloning your project faster, rewrite branches and tags to remove unwante
...
@@ -51,7 +52,8 @@ To make cloning your project faster, rewrite branches and tags to remove unwante
```
```
To purge large files stored using Git LFS, the
`--blob--callback`
option can
To purge large files stored using Git LFS, the
`--blob--callback`
option can
be used:
be used. The example below, uses the callback to read the file size from the
Git LFS pointer, and removes files larger than 10MB.
```
shell
```
shell
git filter-repo
--blob-callback
'
git filter-repo
--blob-callback
'
...
@@ -96,7 +98,7 @@ To make cloning your project faster, rewrite branches and tags to remove unwante
...
@@ -96,7 +98,7 @@ 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
[
Protected tags
](
../protected_tags.md
)
will cause this to fail. To proceed, you must remove tag
protection, push, and then re-enable protected tags.
protection, push, and then re-enable protected tags.
1.
Manually run
[
project housekeeping
](
../../../administration/housekeeping.
html
#manual-housekeeping
)
1.
Manually run
[
project housekeeping
](
../../../administration/housekeeping.
md
#manual-housekeeping
)
NOTE:
**Note**
NOTE:
**Note**
Project statistics are cached for performance. You may need to wait 5-10 minutes
Project statistics are cached for performance. You may need to wait 5-10 minutes
...
...
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