如何使用命令行接口将私有存储库公开?
我将任务提交给机器人。我看不到“设置”选项卡。因此,我想使用命令行执行命令。
如何使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
github cli
您可以使用 -Change-Concencence-discibility public
You can do this with the GitHub Cli:
gh repo edit --accept-visibility-change-consequences --visibility public
使用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.