Diff Against Origin
Compare local main against the fetched state of origin/main without
merging or pulling.
git diff main origin/mainScope to specific files:
git diff main origin/main -- <file1> <file2> ...See also
- Resolve Divergent Branches — when a pull refuses because local and remote have both moved.
- Branch Workflow — everyday side-branch flow.