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:
14
README.md
14
README.md
@@ -202,3 +202,17 @@ $ git status -sb
|
||||
```
|
||||
|
||||

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

|
||||
|
||||
NOTE: Press `q` to quit.
|
||||
|
Reference in New Issue
Block a user