From b8ed51ada580571a42f6687b703a5e55e9e94dfa Mon Sep 17 00:00:00 2001 From: Tim Green Date: Sat, 12 Apr 2014 21:45:51 +0100 Subject: [PATCH] Git Query --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index c33f7c1..602b093 100644 --- a/README.md +++ b/README.md @@ -202,3 +202,17 @@ $ git status -sb ``` ![git status -sb](http://i.imgur.com/xNI1bT0.png) + +## Git Query + +A git query allows you to search all your previous commit messages and finds the most recent one matching the query. + +```bash +$ git show :/query +``` + +Where `query` is the term you want to search, this then finds the last one and gives details on the lines that were changed. + +![git show :/query](http://i.imgur.com/SA0oZbE.png) + +NOTE: Press `q` to quit.