I want to see if there are any tags incoming from the remote.
Both git fetch and git fetch --tags create tags in a local repository if they do not yet exist. But I don't want to create tags, only to check whether they will be created if I do fetch or pull. Is there any way to achieve that?
CodePudding user response:
git fetch --tags --dry-run
--dry-run makes Git show what would be done, without making any changes.
See the docs.
