mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 10:15:24 +02:00
git-rev-list: add -n example (#7763)
This commit is contained in:
parent
1d72e2f253
commit
18642d59eb
2 changed files with 8 additions and 0 deletions
|
@ -7,6 +7,10 @@
|
|||
|
||||
`git rev-list {{HEAD}}`
|
||||
|
||||
- Imprime el último commit que cambió (agregó/editó/eliminó) un archivo específico en la rama actual:
|
||||
|
||||
`git rev-list -n 1 HEAD -- {{ruta/al/archivo}}`
|
||||
|
||||
- Muestra los commits más recientes a partir de una fecha y una rama específica:
|
||||
|
||||
`git rev-list --since={{'2019-12-01 00:00:00'}} {{nombre_de_rama}}`
|
||||
|
|
|
@ -7,6 +7,10 @@
|
|||
|
||||
`git rev-list {{HEAD}}`
|
||||
|
||||
- Print the latest commit that changed (add/edit/remove) a specific file on the current branch:
|
||||
|
||||
`git rev-list -n 1 HEAD -- {{path/to/file}}`
|
||||
|
||||
- List commits more recent than a specific date, on a specific branch:
|
||||
|
||||
`git rev-list --since={{'2019-12-01 00:00:00'}} {{branch_name}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue