1. Use following command to check the different between two different revison ID.
git diff <7d0c6> <50437>
2. When you want to check the two difference branch than use below one
git diff <branch1> <branch2>
3. Also following useful command helpful to show the log with different format
git log
git log –pretty=oneline
git log –pretty=email
git log –pretty=full
git log –pretty=fuller
git log –pretty=medium
git log –pretty=raw
git log –pretty=short
git log –stat
git log –name-only
git log –name-status (Status about file was added or modified)
git log –since=2.weeks
4. When you want to check the specific file level change log by revision ID than use below once
git log –follow demofile_first.html
5. show any object in Git in a human-readable format
git show <COMMIT ID>
(or)
git show
5.1 Also we can use show command to list out all the committed files in a branch by revision ID. This command will list out your all files.
git show –name-only –oneline <REVISION>
6. Show log between branch
git log <branch1> <branch2>
When you want to list all changed files between two commits (revision ID).
git show --pretty="format:" --name-only START_COMMIT..END_COMMIT | sort | uniq