0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2024-11-21 17:36:59 -05:00

admin: adopt

This commit is contained in:
Earl Warren 2023-10-09 13:28:46 +02:00 committed by Earl Warren
parent 0b81e66c45
commit 26ce6aa32b
2 changed files with 14 additions and 0 deletions

13
docs/admin/adopt.md Normal file
View file

@ -0,0 +1,13 @@
---
title: 'Adopt existing git directories'
license: 'CC-BY-SA-4.0'
---
If directories containing bare git repositories exist in the
`[repository].ROOT` hierarchy, they can be imported using the admin
panel.
- Make sure the directory names are lowercase.
- `[repository].ROOT/{user,org}/{repo}.git` will become a project owned by the user or the org.
- Go to `/admin/repos/unadopted`
- In trusted environments, users can also be given similar permissions via the [`ALLOW_ADOPTION_OF_UNADOPTED_REPOSITORIES`](../config-cheat-sheet/#repository-repository) setting.

View file

@ -20,3 +20,4 @@ These documents are targeted to people who run Forgejo on their machines.
- [Recommended Settings and Tips](./recommendations/) - [Recommended Settings and Tips](./recommendations/)
- [GPG Commit Signatures](./signing/) - [GPG Commit Signatures](./signing/)
- [Moderation tools](./moderation/) - [Moderation tools](./moderation/)
- [Adopt existing git directories](./adopt/)