我通常跑步:
git push
git tag v4.7
git push --tags
第一和第三个操作都连接到服务器,这浪费时间。
我想通过仅推送一次来加快速度。哪个命令可以实现这个目的?
它在一个bash 脚本中,需要在任何分支中运行良好,而不仅仅是master
。
阅读手册,我不认为git push all
是解决方案:
--all:不需要命名每个要推送的引用,指定推送refs/heads/下所有引用。
--tags:除了在命令行上明确列出的refspecs之外,还会推送refs/tags下的所有引用。
git push --tags HEAD
是什么意思? - Daniel Hilgarth