mirror of
https://github.com/sahinakkaya/til.git
synced 2024-11-08 10:19:35 +01:00
313 B
313 B
You can add filename to git log
to view all the commit history of a file:
git log my_file
If you want to view diff's, add -p
option:
git log -p my_file
If you want to continue listing the file history beyond renames, add --follow
option:
git log --follow -p my_file