What is the command to list all the tags in a Git repository?
- git show-tags
- git tags
- git list-tags
- git tag -l
The correct option is git tag -l. This command lists all the tags in the Git repository. It's essential for getting an overview of available tags, especially in larger projects with numerous releases.
Loading...
Related Quiz
- How does the git reflog command assist in recovering lost commits?
- What strategies can be employed in Git to manage a large number of contributors in an open source project?
- Which command is used to create a new Git repository?
- What is the purpose of the 'HEAD' in a Git repository?
- What advanced strategies can be used for optimizing Git operations in a continuous integration/continuous deployment (CI/CD) environment?