Skip to content

Instantly share code, notes, and snippets.

@mohanadkaleia
Created January 14, 2016 16:56
Show Gist options
  • Save mohanadkaleia/4f85e06cd52428166698 to your computer and use it in GitHub Desktop.
Save mohanadkaleia/4f85e06cd52428166698 to your computer and use it in GitHub Desktop.
#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