git diff branch1:full/path/to/foo.txt branch2:full/path/to/foo-another.txt
You can also use relative paths:
git diff branch1:./relative/path/to/foo.txt branch2:./relative/path/to/foo-another.txt
More Related Contents:
- How can I see the differences between two branches?
- How do I show the changes which have been staged?
- How to list only the names of files that changed between two commits
- Showing which files have changed between two revisions
- Viewing unpushed Git commits
- How can I see the changes in a Git commit?
- How to compare files from two different branches
- What are the differences between double-dot “..” and triple-dot “…” in Git commit ranges?
- What are the differences between double-dot “..” and triple-dot “…” in Git diff commit ranges? [duplicate]
- How to read the output from git diff?
- git-diff to ignore ^M
- How do I diff the same file between two different commits on the same branch?
- ‘git diff’ doesn’t show enough
- Export only modified and added files with folder structure in Git
- How can I get the diff between all the commits that occurred between two dates with Git?
- Trying to understand `git diff` and `git mv` rename detection mechanism
- Getting the difference between two repositories
- How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?
- Show diff between commits
- How can I view file history in Git?
- How to “git show” the diffs for a merge commit?
- Make ‘git diff’ ignore ^M
- How can I get a side-by-side diff when I do “git diff”?
- Ignore *all* whitespace changes with git-diff between commits
- How to diff a commit with its parent
- Exclude file from “git diff”
- What are the differences between these git diff commands?
- How to get Git diff of the first commit?
- Show git diff, ignoring file permission changes?
- Using git diff, how can I get added and modified lines numbers?