Skip to content

Instantly share code, notes, and snippets.

@d0v1k
Forked from nasirkhan/git command.markdown
Created March 25, 2021 13:22
Show Gist options
  • Save d0v1k/74909694f1e918519e2d161cd1679cc6 to your computer and use it in GitHub Desktop.
Save d0v1k/74909694f1e918519e2d161cd1679cc6 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