Skip to content

Instantly share code, notes, and snippets.

@deryni
Created November 6, 2013 00:15
Show Gist options
  • Save deryni/7328699 to your computer and use it in GitHub Desktop.
Save deryni/7328699 to your computer and use it in GitHub Desktop.
'git describe --contains --abbrev=0' doesn't seem to work.
$ git --version
git version 1.8.2.1
$ git lol
* f09682e (HEAD, tag: second-tag, master) add c
* 86db014 add b
* b8c7c3e (tag: initial-tag) initial
$ git describe 86db014
initial-tag-1-g86db014
$ git describe --abbrev=0 86db014
initial-tag
$ git describe --contains 86db014
second-tag~1
$ git describe --contains --abbrev=0 86db014
second-tag~1
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment