check difference in file git code example Example: git diff of a file between two commits git diff <branch_hash> <other_branch_hash> -- <file_path>