Dwelle Dwelle - 1 year ago 113
Git Question

what does the hash from `git describe` refer to?

$ git describe --tags --long
\_ ???

doesn't seem to point to anything... The doc says it's the abbreviated object name of the most recent commit, but it's not the HEAD commit hash, and
find .git/objects -type f | grep g3c31c73
finds nothing.

Answer Source

The "g" isn't a part of the commit.

Try looking for a commit 3c31c73 using git show 3c31c73.

The "g" prefix stands for "git" and is used to allow describing the version of a software depending on the SCM the software is managed with. This is useful in an environment where people may use different SCMs.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download