Skip to content

Instantly share code, notes, and snippets.

@kikislater
Created September 26, 2020 05:35
Show Gist options
  • Save kikislater/e0388d877b1c79964568ed44641f9b6f to your computer and use it in GitHub Desktop.
Save kikislater/e0388d877b1c79964568ed44641f9b6f to your computer and use it in GitHub Desktop.
Git clean and force pull to overwrite local files
# Git clean and force pull to overwrite local files
git reset --hard HEAD
git clean -f -d ## -n to get it interactive
git pull
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment