Skip to content

Instantly share code, notes, and snippets.

@podolskyi
Forked from nasirkhan/git command.markdown
Created May 22, 2016 17:09
Show Gist options
  • Save podolskyi/b71e3aeb11f2415c015ef60ff9722946 to your computer and use it in GitHub Desktop.
Save podolskyi/b71e3aeb11f2415c015ef60ff9722946 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