Skip to content

Instantly share code, notes, and snippets.

@hanvari
Created January 27, 2017 16:26
Show Gist options
  • Save hanvari/99f6e771ea6a9fe8e3ae1e649b195bcb to your computer and use it in GitHub Desktop.
Save hanvari/99f6e771ea6a9fe8e3ae1e649b195bcb to your computer and use it in GitHub Desktop.
Git overwrite local changes with remote version
git fetch --all
git reset --hard origin/master
git pull origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment