Git - How to view the change history of a specific file

From miscellus

This simple command shows you the complete change log for a specific file

We love git but often can never find the correct command in the user manual. This is a personal aide-memoir for this much used command:

Issue the command from the base directory of the git repo and it shows the log and diff of all changes to the file in question

git log --follow -p ./is-beer-a-vegetable.com/httpdocs/wiki/skins/Vector.php


Simples!