Created
September 26, 2020 05:35
-
-
Save kikislater/e0388d877b1c79964568ed44641f9b6f to your computer and use it in GitHub Desktop.
Git clean and force pull to overwrite local files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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