# How to adopt a lot of repos from filesystem

**URL:** <https://forum.gitea.com/t/how-to-adopt-a-lot-of-repos-from-filesystem/5291>\
**Category:** Install/Maintain/Configure\
**Created:** [May 30, 2022, 10:43pm UTC](https://forum.gitea.com/t/how-to-adopt-a-lot-of-repos-from-filesystem/5291 "2022-05-30T22:43:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![martincz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/martincz/32/2709_2.png) [@martincz](https://forum.gitea.com/u/martincz)\
**Post date:** [May 30, 2022, 10:43pm UTC](https://forum.gitea.com/t/how-to-adopt-a-lot-of-repos-from-filesystem/5291/1 "2022-05-30T22:43:41Z")

</div>

I have a lot of repos, more than 2000.  
adopt them from Gitea admin panel is a tough task.

---

<div class="post-metadata">

**Author:** ![eeyrjmr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/eeyrjmr/32/1095_2.png) [@eeyrjmr](https://forum.gitea.com/u/eeyrjmr)\
**Post date:** [June 1, 2022, 9:32pm UTC](https://forum.gitea.com/t/how-to-adopt-a-lot-of-repos-from-filesystem/5291/2 "2022-06-01T21:32:05Z")

</div>

use the swagger API

loop over the **/admin/unadopted** and call the **/admin/unadopted/{owner}{repo}**
