Git - diff remote branch against current
Show a diff between a remote and local branch.
# Diff local master against remote master.
git fetch origin; git diff --name-only master origin/master
# Diff a specific file in current branch against remote master.
git diff origin/master -- path/to/file.cs
# Show the commit that origin points to.
git rev-parse origin