mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-18 04:49:56 +00:00
Update cheatsheets
This commit is contained in:
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Show the history of a particular file or directory, including differences:
|
||||
|
||||
`git log {{-p|-u|--patch}} {{path/to/file_or_directory}}`
|
||||
`git log {{[-p|--patch]}} {{path/to/file_or_directory}}`
|
||||
|
||||
- Show an overview of which file(s) changed in each commit:
|
||||
|
||||
@@ -30,11 +30,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Show only commits with messages that include a specific string, ignoring case:
|
||||
|
||||
`git log {{-i|--regexp-ignore-case}} --grep {{search_string}}`
|
||||
`git log {{[-i|--regexp-ignore-case]}} --grep {{search_string}}`
|
||||
|
||||
- Show the last N number of commits from a certain author:
|
||||
|
||||
`git log {{-n|--max-count}} {{number}} --author "{{author}}"`
|
||||
`git log {{[-n|--max-count]}} {{number}} --author "{{author}}"`
|
||||
|
||||
- Show commits between two dates (yyyy-mm-dd):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user