I'm trying to checkout OpenSSL 1.0.2a (and not Master). OpenSSL has tagged releases, and I'm trying to browse them to determine what the actual name is. I know they have 1.0.0, 1.0.1 and 1.0.2 (but they are named more complexly).
According to OpenSSL Git repository, the repo is located at git://git.openssl.org/openssl.git.
According to How to see all tags in a git repository in command line, I need to use git tag
:
$ git tag git://git.openssl.org/openssl.git
fatal: Not a git repository (or any of the parent directories): .git
How do I browse the tagged releases held in a Git repo?
For completeness, Git for beginners: The definitive practical guide does not discuss this topic.
In order to list Git tags, you have to use the “git tag” command with no arguments. You can also execute “git tag” with the “-n” option in order to have an extensive description of your tag list.
To fetch tags from your remote repository, use “git fetch” with the “–all” and the “–tags” options. Let's say for example that you have a tag named “v1. 0” that you want to check out in a branch named “release”. Using this command, you have successfully checked out the “v1.
git tag
assumes you have a clone of the repo checked out locally. (Which is why it complains about not being in a git repository.)
To achieve what you desire, you probably want to first clone it, then switch to the desired tag:
git clone git://git.openssl.org/openssl.git
cd openssl
git tag -l # to list the tags
git checkout tags/<name> # to switch to the desired tag
You can also get a list of the tags in the remote repository without doing a git clone
first, by using the following command:
git ls-remote --tags git://git.openssl.org/openssl.git
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With