Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

`git describe` is great.

Also, if you don't feel ready to commit to tagging your repository you can start with the `--always` flag which falls back to just the short commit hash.

The article's script isn't far from `git describe --always --dirty`, which can be a good place to start, and then it gets better as you start tagging.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: