Skip to content

Instantly share code, notes, and snippets.

@steren
Created December 30, 2011 09:35
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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