Reputation: 11
How to pull a specific release version from remote repository? I have tried "git fetch" but the fetched tagged doesn't show when I do "git tag".
Upvotes: 0
Views: 1862
Reputation: 2104
You can try to fetch the tag like this
git fetch origin refs/tags/1.0.0:refs/tags/1.0.0
And if you want to fetch and create a new branch to work on, then try this
git fetch origin refs/tags/1.0.0:refs/head/my-branch
You can further read here
Upvotes: 1