git-rev-list: add -n example (#7763)

feature/windows-fix-syntax-2
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}}`