Skip to content

Instantly share code, notes, and snippets.

@guiassemany
Created December 20, 2015 19:17
Show Gist options
  • Save guiassemany/ec5ff3bf7a4df94f38ee to your computer and use it in GitHub Desktop.
Save guiassemany/ec5ff3bf7a4df94f38ee to your computer and use it in GitHub Desktop.
GIT - Discard all local changes and pull

git discard all local changes/commits and pull from upstream

  • 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