Skip to content

Instantly share code, notes, and snippets.

@gagimilicevic
Created December 8, 2020 14:34
Show Gist options
  • Save gagimilicevic/0c1e135192923c10d821c55354414607 to your computer and use it in GitHub Desktop.
Save gagimilicevic/0c1e135192923c10d821c55354414607 to your computer and use it in GitHub Desktop.
`git` discard all local changes/commits and pull from upstream
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