Last Updated: February 25, 2016
·
1.134K
· milesmatthias

git log won't display error

git log [-- path]

is an awesome tool that allows you to see the commit logs for the entire repo or just a file at [path].

However if your path to the file isn't correct, git won't give you an error. It just displays nothing. So if you can't get a log to show up for a file, double check that the path is correct.