Skip to content

Instantly share code, notes, and snippets.

@pocc
Created April 15, 2018 02:25
Show Gist options
  • Save pocc/c00c58f3e8a5ce0919e87ebfde241fe8 to your computer and use it in GitHub Desktop.
Save pocc/c00c58f3e8a5ce0919e87ebfde241fe8 to your computer and use it in GitHub Desktop.
Git force pull to overwrite local files
# Shamelessly stolen from https://gist.github.com/vladimirtsyupko/10964772
git fetch --all
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