Skip to content

Instantly share code, notes, and snippets.

@abelorian
Created January 10, 2017 14:35
Show Gist options
  • Save abelorian/bcd9c174a6eaeec4a14096a52b3b17f8 to your computer and use it in GitHub Desktop.
Save abelorian/bcd9c174a6eaeec4a14096a52b3b17f8 to your computer and use it in GitHub Desktop.
git: Your branch and 'origin/master' have diverged - how to throw away local commits?
git fetch origin
git reset --hard origin/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment