I have cloned a remote Git repository to my laptop, then I wanted to add a tag so I ran
git tag mytag master
--follow-tags is a sane option introduced in Git 1.8.3:
git push --follow-tags
It pushes both commits and only tags that are both:
This is sane because:
It is for those reasons that
--tags should be avoided.
Git 2.4 has added the
push.followTags option to turn that flag on by default.