I have used following command to fetch a remote tag, it completed successfully by fetching the remote objects.
git fetch origin <tag name >
After that gave following command to switch to tag, but it gave error: pathspec
error.
git checkout <tag name>
Now I tried following command.
git fetch --tags
After that the command, git checkout <tag name>
executed successfully.
Can you help to understand during git fetch origin <tag name>
why the tag was not fetched.