Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save chn0905/ba40cee1c16f34721f6f5b4e47f4acde to your computer and use it in GitHub Desktop.
Save chn0905/ba40cee1c16f34721f6f5b4e47f4acde to your computer and use it in GitHub Desktop.
Git force pull to overwrite local files
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