Skip to content

Instantly share code, notes, and snippets.

@tarnfeld
Created February 19, 2012 11:27
Show Gist options
  • Save tarnfeld/1863262 to your computer and use it in GitHub Desktop.
Save tarnfeld/1863262 to your computer and use it in GitHub Desktop.
Diff a remote branch against a local branch
# Fetch from the remote
git fetch {remote}
# List remote branches
git branch -r
# Find the branch labeled {remote}/branchname you want to diff
# Diff it
git diff {remote}/branch .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment