4 ms·
TBH I'm not sure I'd ever heard of "describe" -- I'd always used rev-parse to get a commit ID. But now that I'm trying it, it gives me a branch/tag name rather
by throwaway287391 6y ago
TBH I'm not sure I'd ever heard of "describe" -- I'd always used rev-parse to get a commit ID. But now that I'm trying it, it gives me a branch/tag name rather than a commit ID (either bare "git describe" or with the other arguments mentioned above). So...not really sure?
- juped 6y agoIt depends on what exactly you're looking for, I guess. There's a million ways to parse HEAD into a hash, if that's what you're after.