Options (1)
-n, --max-countbooleanPrint the latest commit that changed (add/edit/remove) a specific file on the current branch
Example:
git rev-list {{[-n|--max-count]}} 1 HEAD -- {{path/to/file}}Examples (5)
List all commits on the current branch
git rev-list HEADPrint the latest commit that changed (add/edit/remove) a specific file on the current branch
git rev-list [-n|--max-count] 1 HEAD -- path/to/fileList commits more recent than a specific date, on a specific branch
git rev-list --since "2019-12-01 00:00:00" branch_nameList all merge commits on a specific commit
git rev-list --merges commitPrint the number of commits since a specific tag
git rev-list tag_name..HEAD --countmade by @shridhargupta | data from tldr-pages