github 无需克隆 repo 的远程标签推送
github remote tag push without cloning repo
如何在 github 中编辑标签,而不从命令行克隆 repo?
下面的示例显示了如何在不克隆存储库的情况下列出远程标签:
$ git ls-remote --tags https://<TOKEN>@github.com/user/repo.git
# 0afdaf971...09a refs/tags/tagname
如何远程 edit/add/del 像上面的例子一样的新标签,而不必克隆 repo?
git push origin :tagname
需要克隆存储库。
有没有不用克隆 repo 实现的方法?
@xerx593
谢谢指点,解决方法如下:
curl --user "username:password" --data '{"tag_name":"v1.1","target_commitish":"master"}' \
-X POST https://api.github.com/repos/:owner/:repo/releases
如何在 github 中编辑标签,而不从命令行克隆 repo?
下面的示例显示了如何在不克隆存储库的情况下列出远程标签:
$ git ls-remote --tags https://<TOKEN>@github.com/user/repo.git
# 0afdaf971...09a refs/tags/tagname
如何远程 edit/add/del 像上面的例子一样的新标签,而不必克隆 repo?
git push origin :tagname
需要克隆存储库。
有没有不用克隆 repo 实现的方法?
@xerx593
谢谢指点,解决方法如下:
curl --user "username:password" --data '{"tag_name":"v1.1","target_commitish":"master"}' \
-X POST https://api.github.com/repos/:owner/:repo/releases