How find commits by the description
Posted on: 22 November, 2011
- In: Git
- 2 Comments
I use a lot of unfuddle, so always in my commit use this message:
- Ticket #11: my description
then if I need find the commits for that ticket, only need type in the console this:
$ git log master --reverse --abbrev-commit --pretty=oneline | grep "#11"
and return something like this:
34ab0df Ticket #11: description 1
8a40fd1 Ticket #11: description 2
Tags: git
23 November, 2011 at 10:30 am
This is so useful, I’m going to use it every day!!