如何使用命令行接口将私有存储库公开?

发布于 2025-01-27 04:14:32 字数 78 浏览 2 评论 0原文

我将任务提交给机器人。我看不到“设置”选项卡。因此,我想使用命令行执行命令。

如何使用git bash命令行公开我的私人存储库?

I am submitting a task to a bot. I can't see the settings tab. Therefore, I wanted to use command line to execute the command .

How can I make my private repository public using the git bash command line?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

找个人就嫁了吧 2025-02-03 04:14:32

You can do this with the GitHub Cli:

gh repo edit --accept-visibility-change-consequences --visibility public

故笙诉离歌 2025-02-03 04:14:32

使用git命令,我认为这是不可能的。您可以使用github cli repo编辑命令: https://cli.github.com/manual/manual/gh_repo_repo_repo_edit 或者您可以直接使用GitHub API来实现这一目标。

Using git command I don't think it's possible. You can use GitHub cli repo edit command : https://cli.github.com/manual/gh_repo_edit or you can directly use GitHub API'S to accomplish this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文