If you specify a directory or file name, you can limit the log output to commits that introduced a change to those files. This is always the last option and is generally preceded by double dashes (--) to separate the paths from the options. In Options to limit the output of git log we’ll list these and a few other common options for your reference.