What does the -n command in git mean

2

I've been given a command to see the last commit of a file that has been deleted, I know what the subcommand means but I do not know what the -n command means, see example command below :

log --diff-filter=D --name-status -n 1 -- lib/docs/index.html
    
asked by anonymous 15.06.2018 / 16:31

1 answer

4

The subcommand -n in git log is reduced form to number and will show output with a defined number of commits given after -n

Source: link

    
15.06.2018 / 16:37