Jenimech

How find commits by the description

Posted on: 22 November, 2011

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

About these ads
Tags:

2 Responses to "How find commits by the description"

This is so useful, I’m going to use it every day!!

Here are some references to made a report with git log http://gitref.org/inspect/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


    • eugeniach: Here are some references to made a report with git log http://gitref.org/inspect/
    • hrbg: This is so useful, I'm going to use it every day!!

    Categories

    Follow

    Get every new post delivered to your Inbox.

    %d bloggers like this: