mirror of https://github.com/CrimsonTome/tldr.git
17 lines
421 B
Markdown
17 lines
421 B
Markdown
|
# git rev-list
|
||
|
|
||
|
> List revisions (commits) in reverse chronological order.
|
||
|
> More information: <https://git-scm.com/docs/git-rev-list>.
|
||
|
|
||
|
- List all commits on the current branch:
|
||
|
|
||
|
`git rev-list {{HEAD}}`
|
||
|
|
||
|
- List commits more recent than a specific date, on a specific branch:
|
||
|
|
||
|
`git rev-list --since={{'2019-12-01 00:00:00'}} {{master}}`
|
||
|
|
||
|
- List all merge commits on a specific commit:
|
||
|
|
||
|
`git rev-list --merges {{commit}}`
|