Force “git pull” to overwrite local files

git fetch --all
git reset --hard origin/master

OR If you are on some other branch:

git reset --hard origin/<branch_name>

References
https://stackoverflow.com/questions/1125968/how-do-i-force-git-pull-to-overwrite-local-files

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.