You made a mistake. The code you pull is just the default branch with the same name as the tag.
git fetch git checkout tag That’s it
2016-07-03 01:24:25 Correction It has been verified that clone -b can directly pull down a tag. My previous understanding was that when I checked out the cloned project, I found that the -b parameter could not be used, which led to this wrong understanding. If you are not rigorous, take this as a warning.
Click to get the tag URL
git clone --branch v1.6.5.7 https://github.com/ManaPlus/ManaPlus.git
You made a mistake. The code you pull is just the default branch with the same name as the tag.
git fetch
git checkout tag
That’s it
2016-07-03 01:24:25 Correction
It has been verified that clone -b can directly pull down a tag.
My previous understanding was that when I checked out the cloned project, I found that the -b parameter could not be used, which led to this wrong understanding.
If you are not rigorous, take this as a warning.
Then use the
git
command line to synchronize it locallyFor the configuration of
git
, you can refer to git here. I hope it will be helpful to youman git clone The result found shows git clone -b <branch name or tag name>