Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting last tag #53

Open
ImanMh opened this issue May 26, 2020 · 1 comment
Open

getting last tag #53

ImanMh opened this issue May 26, 2020 · 1 comment

Comments

@ImanMh
Copy link

ImanMh commented May 26, 2020

Hi there, There is a function in this lib that returns the current tag, but is there a way to get the latest tag on current branch?

git describe --abbrev=0
@parveen-rx
Copy link

Hi there, There is a function in this lib that returns the current tag, but is there a way to get the latest tag on current branch?

git describe --abbrev=0

You can use
git describe --tag --abbrev=0 or git describe --tags --abbrev=0 but in brief

--tag considers only annotated tags.
--tags considers all tags, including lightweight tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants