【问题标题】:Is it possible to remove a remote repository on Github through the command line?是否可以通过命令行删除 Github 上的远程存储库?
【发布时间】:2014-10-12 10:19:46
【问题描述】:

我目前正在运行一个 bash 脚本来使用 curl 在 Github 上自动创建一个远程存储库。我想知道是否有任何方法也可以在命令行上删除远程 Github 存储库。任何帮助将不胜感激!

【问题讨论】:

    标签: git bash github


    【解决方案1】:

    您可以为此使用GitHub API "Delete repository"
    但是您需要使用oauth token with the appropriate scope(如mentioned here
    你可以在this question看到一个例子:

    curl -X DELETE -H 'Authorization: token xxx' https://api.github.com/repos/USERNAME/REPO-NAME
    

    【讨论】:

    猜你喜欢
    • 2018-05-26
    • 2015-07-04
    • 2021-07-04
    • 2015-03-08
    • 1970-01-01
    • 2020-03-22
    • 1970-01-01
    • 2019-03-23
    • 2012-06-01
    相关资源
    最近更新 更多