Skip to content

Possibly misinformatiob about pushing tags #1426

@WesleyGoncalves

Description

@WesleyGoncalves

Which version of the book is affected?
Online book v2. Maybe the pdf.

Describe the bug:

The note in the section Sharing Tags of the page Tagging says that (emphasis added)

Pushing tags using git push <remote> --tags does not distinguish between lightweight and annotated tags; there is no simple option that allows you to select just one type for pushing.

However, the Reference Manual about git push --follow-tags here says (emphasis added)

Push all the refs that would be pushed without this option, and also push annotated tags in refs/tags that are missing from the remote but are pointing at commit-ish that are reachable from the refs being pushed. This can also be specified with configuration variable push.followTags. For more information, see push.followTags in git-config[1].

Therefore, there is another option to push only one type of tags. There is no option (that I know of) to push only lightweight tags, but there is one (--follow-tags) to push only annotated tags.

Steps to reproduce:

Expected behavior:

Screenshots:

Additional context:

Desktop:

  • Operating system:
  • Browser/application:
  • Browser/application version:

Smartphone:

  • Device:
  • OS:
  • Browser/application:
  • Browser/application version:

E-book reader:

  • Device:
  • Software Update:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions