git clone download source code
git tag lists all version numbers
git checkout + a certain version number
The source code in your current folder will become the source code of this version number.
But may encounter error:
error: Your local changes to the following files would be overwritten by checkout : xxxx
Please commit your changes or stash them before you switch branches
You can forcibly switch the branch to discard the modification, and then checkout.
reference: