Skip to content

Instantly share code, notes, and snippets.

@fprieur
Last active December 1, 2015 12:24
Show Gist options
  • Save fprieur/f199df96bc88e3e5438c to your computer and use it in GitHub Desktop.
Save fprieur/f199df96bc88e3e5438c to your computer and use it in GitHub Desktop.
Git - Force remote changes to local branch

fetch from the default remote, origin

git fetch

reset your current branch (master) to origin's master

git reset --hard origin/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment