Why git doesn't push tags by default?

ぐ巨炮叔叔 提交于 2019-12-03 02:59:24
VonC

If you consider the tags of any large project (kernel linux, git itself, ...) you would see tags in the hundreds.

A Distributed VCS is all about publication: what do you want to push?
Everything? All the time?

Pushing all tags can pollute the tags space from the upstream repo.

With the current behavior, you keep the control of what you are publishing to the upstream repo, for others to see.


Note that since git 1.8.3 (April 2013), the git push --follow-tags can help you push commits and their associated tags in one command.

See "Push git commits & tags simultaneously".

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!