创建存储库时在 Gitea 中强制初始化

发布于 2025-01-14 16:50:33 字数 395 浏览 2 评论 0 原文

当您从网站在 Gitea 中创建存储库时,您可以标记“初始化存储库(添加 .gitignore、许可证和自述文件)”,并且当您从 API 您可以设置auto_inittrue

有没有办法配置 Gitea 强制所有存储库初始化存储库,无论它们是从网站还是 API 创建的,也无论用户为此选项选择什么?

换句话说,我需要将 Gitea 配置为始终初始化创建的每个存储库。

When you create a repo in Gitea from the website you can mark "Initialize Repository (Adds .gitignore, License and README)", and when you create a repo in Gitea from the API you can set auto_init to true.

Is there any way to configure Gitea to force Initialize Repository for all repos no matter if they are created from the website or API and no matter what the user chose for this option?

In other words, I need to configure my Gitea to always initialize every repo that is created.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文