Effective logging in Git

Root commandVariantOutput
git logfilename.txtList the commits that changed the given file
git log --patchfilename.txtShow the diff changes for each commit for the given file
git log --patchnullShow the diff changes for each commit for all files