diff --git a/docs/admin/adopt.md b/docs/admin/adopt.md new file mode 100644 index 00000000..398bf719 --- /dev/null +++ b/docs/admin/adopt.md @@ -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. diff --git a/docs/admin/index.md b/docs/admin/index.md index 54fcd372..f0d0edff 100644 --- a/docs/admin/index.md +++ b/docs/admin/index.md @@ -20,3 +20,4 @@ These documents are targeted to people who run Forgejo on their machines. - [Recommended Settings and Tips](./recommendations/) - [GPG Commit Signatures](./signing/) - [Moderation tools](./moderation/) +- [Adopt existing git directories](./adopt/)