git-*: convert options to longform and minor fixes (#13441)

Co-authored-by: spageektti <git@spageektti.cc>
Co-authored-by: Fazle Arefin <fazlearefin@users.noreply.github.com>
This commit is contained in:
Managor
2024-08-31 14:06:48 +03:00
committed by GitHub
parent 6d983d1acb
commit db25f60eb1
20 changed files with 46 additions and 46 deletions

View File

@@ -9,7 +9,7 @@
- Show the history of a particular file or directory, including differences:
`git log -p {{path/to/file_or_directory}}`
`git log {{--patch|-p|-u}} {{path/to/file_or_directory}}`
- Show an overview of which file(s) changed in each commit:
@@ -23,14 +23,14 @@
`git log --oneline --decorate --all --graph`
- Show only commits whose messages include a given string (case-insensitively):
- Show only commits with messages that include a specific string, ignoring case:
`git log -i --grep {{search_string}}`
`git log {{--regexp-ignore-case|-i}} --grep {{search_string}}`
- Show the last N commits from a certain author:
- Show the last N number of commits from a certain author:
`git log -n {{number}} --author={{author}}`
`git log {{--max-count|-n} {{number}} --author "{{author}}"`
- Show commits between two dates (yyyy-mm-dd):
`git log --before="{{2017-01-29}}" --after="{{2017-01-17}}"`
`git log --before "{{2017-01-29}}" --after "{{2017-01-17}}"`