1
0
Fork 0
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:
Axel Navarro 2022-02-24 09:38:17 -03:00 committed by GitHub
parent 1d72e2f253
commit 18642d59eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -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}}`

View file

@ -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}}`