View the change history of a file using Git versioning
Asked 07 September, 2021
Viewed 2.5K times
  • 54
Votes

How can I view the change history of an individual file in Git, complete details with what has changed?

I have got as far as:

git log -- [filename]

which shows me the commit history of the file, but how do I get at the content of each of the file changes?

I'm trying to make the transition from Microsoft Visual SourceSafe and that used to be a simple right-click → Show history.

24 Answer