git: file history with diff

Show diff ONLY for src/main/resources/file.xml
git log -p src/main/resources/file.xml

Show diff for ALL FILES that touches src/main/resources/file.xml
git log -p --full-diff src/main/resources/file.xml

Leave a Reply

Your email address will not be published. Required fields are marked *