loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

added ssh mirror workaround description (#26096)

related #1635 #18159

This will probably be obsolete at some point, but it should not break
anything and it may help some users

authored by

thigg and committed by
GitHub
5446d65b 1ce51a55

+13
+13
docs/content/doc/usage/repo-mirror.en-us.md
··· 92 92 4. Select **Add Push Mirror** to save the configuration. 93 93 94 94 The repository pushes shortly thereafter. To force a push, select the **Synchronize Now** button. 95 + 96 + ### Mirror an existing ssh repository 97 + 98 + Currently gitea supports no ssh push mirrors. You can work around this by adding a `post-receive` hook to your gitea repository that pushes manually. 99 + 100 + 1. Make sure the user running gitea has access to the git repo you are trying to mirror to from shell. 101 + 2. On the Webinterface at the repository settings > git hooks add a post-receive hook for the mirror. I.e. 102 + 103 + ``` 104 + #!/usr/bin/env bash 105 + git push --mirror --quiet git@github.com:username/repository.git &>/dev/null & 106 + echo "GitHub mirror initiated .." 107 + ```