如何向 Github 提交添加标签?
How do I add a tag to a Github commit?
进行 GitHub 提交时,如何在将其推送到远程仓库之前使用 git 命令行选项对其进行标记?
这样的事情能做吗?
git commit -m 'first commit' -tag -a v0.0.1 -m "1st release"
据我所知,您不能在一个命令中提交和标记。
git commit -m "prepare for v1.0.0 release"
git tag v1.0.0
git push origin master --tags
您所能做的就是通过 &&
:
连接命令
git commit -m "prepare for v1.0.0 release" && git tag v1.0.0 && git push origin master --tags
进行 GitHub 提交时,如何在将其推送到远程仓库之前使用 git 命令行选项对其进行标记?
这样的事情能做吗?
git commit -m 'first commit' -tag -a v0.0.1 -m "1st release"
据我所知,您不能在一个命令中提交和标记。
git commit -m "prepare for v1.0.0 release"
git tag v1.0.0
git push origin master --tags
您所能做的就是通过 &&
:
git commit -m "prepare for v1.0.0 release" && git tag v1.0.0 && git push origin master --tags