Skip to content

Instantly share code, notes, and snippets.

@steren
Created December 30, 2011 09:35
Show Gist options
  • Save steren/1538982 to your computer and use it in GitHub Desktop.
Save steren/1538982 to your computer and use it in GitHub Desktop.
Git: compare a local branch with upstream repository
git fetch upstream && git diff remotes/upstream/master master > changes.diff
@knowmad
Copy link

knowmad commented Nov 28, 2020

Reminder to change 'master' to 'main' for any local or upstream repositories that have made this switch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment