Commit 1690a9e5 authored by James Ramsay's avatar James Ramsay

Push replace refs to prevent dead links

parent bcf0b491
......@@ -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
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).
NOTE: **Note:**
......@@ -185,6 +193,14 @@ the project export.
[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. 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).
## Repository cleanup
......
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