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
1690a9e5
Commit
1690a9e5
authored
Jul 15, 2020
by
James Ramsay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Push replace refs to prevent dead links
parent
bcf0b491
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
doc/user/project/repository/reducing_the_repo_size_using_git.md
...er/project/repository/reducing_the_repo_size_using_git.md
+16
-0
No files found.
doc/user/project/repository/reducing_the_repo_size_using_git.md
View file @
1690a9e5
...
@@ -101,6 +101,14 @@ download all the advertised refs.
...
@@ -101,6 +101,14 @@ download all the advertised refs.
[
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.
To prevent dead links to commits that no longer exist, push the
`refs/replace`
created by
`git filter-repo`
.
```
shell
git push origin
--force
'refs/replace/*'
```
Refer to the Git documentation on
[
`replace`
](
https://git-scm.com/book/en/v2/Git-Tools-Replace
)
for how this works.
1.
Run a
[
repository cleanup
](
#repository-cleanup
)
.
1.
Run a
[
repository cleanup
](
#repository-cleanup
)
.
NOTE:
**Note:**
NOTE:
**Note:**
...
@@ -185,6 +193,14 @@ the project export.
...
@@ -185,6 +193,14 @@ the project export.
[
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.
To prevent dead links to commits that no longer exist, push the
`refs/replace`
created by
`git filter-repo`
.
```
shell
git push origin
--force
'refs/replace/*'
```
Refer to the Git documentation on
[
`replace`
](
https://git-scm.com/book/en/v2/Git-Tools-Replace
)
for how this works.
1.
Run a
[
repository cleanup
](
#repository-cleanup
)
.
1.
Run a
[
repository cleanup
](
#repository-cleanup
)
.
## Repository cleanup
## Repository cleanup
...
...
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