Skip to content

Instantly share code, notes, and snippets.

@nestserau
Created May 1, 2014 11:40
Show Gist options
  • Save nestserau/1f6e1621fdad199b5fce to your computer and use it in GitHub Desktop.
Save nestserau/1f6e1621fdad199b5fce to your computer and use it in GitHub Desktop.
View the change history of a file using Git versioning
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 changes?
gitk [filename]
You can use
git log -p filename
to let git generate the patches for each log entry.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment