Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6546861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:45:37+00:00 2026-05-25T11:45:37+00:00

$ git tag hello $ git describe –tags hello … work work … $

  • 0
$ git tag hello

$ git describe --tags
hello

... work work ...
$ git commit -m "work stuff"

$ git describe --tags
hello-1-48281

Say what? What’s the extra stuff? Doesn’t look like a SHA1… is it possible to just get “hello” back?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:45:38+00:00Added an answer on May 25, 2026 at 11:45 am

    Say what? What’s the extra stuff? Doesn’t look like a SHA1… is it possible to just get “hello” back?

    “git describe” probably doesn’t do what you think it does:

    DESCRIPTION
      The command finds the most recent tag that is reachable from a commit.
      If the tag points to the commit, then only the tag is shown. Otherwise,
      it suffixes the tag name with the number of additional commits on top
      of the tagged object and the abbreviated object name of the most recent
      commit.
    

    So, in your example of “hello-1-48281”, git is saying, “the hello tag is separated by 1 commit from the current object, which is 48281.”

    If you want a list of tags instead, just do git tag -l.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my repository, I have created tags using the following commands. git tag v1.0.0
I've been using git for some time now and understand how commits work, tags,
Some Git commands take commit ranges and one valid syntax is to separate two
Browsing through the git documentation, I can't see anything analogous to SVN's commit hooks
When doing a git tag , I'm not always great at remembering if HEAD~6
I did: git clone git://github.com/xyz/xyz.git git tag -l release-1.0.0 release-1.0.1 release-1.0.2 git checkout release-1.0.2
I want to execute a command like 'git tag -l' inside a directory /home/user/git/app/
Beginner Git question: In the Mercurial world, hg tags gives me a list of
We use tags in git as part of our deployment process. From time to
Git has a much-touted(?) octopus-merge capability that can merge many heads into one. But

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.