1
0
mirror of https://github.com/tiimgreen/github-cheat-sheet.git synced 2025-08-10 09:54:08 +02:00

Git Query

This commit is contained in:
Tim Green
2014-04-12 21:45:51 +01:00
parent 148943c8a1
commit b8ed51ada5

View File

@@ -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.