Now that we have found the 60d538f commit, we should make it a lightweight tag:
- Use the git tag command to give a meaningful release name:
$ git tag 'v2.3.0.201302061315rc1' ea060dd
- Since there is no output, it is a success. To see whether the tag is available, use the git tag command:
$ git tag -l "v2.3.0.2*"
v2.3.0.201302061315rc1
v2.3.0.201302130906
- We are using the git tag command with -l as a flag, since we want to list the tags and not tag the current HEAD. Some repositories have a lot of tags; so to prevent the list from becoming too long, you can specify which tags you want to list and use a * wildcard as we did previously. Our tag is available, but all it really says is that we have a tag in the repository with ...