git clone repository dont replace local files code example
Example: force git pull overwrite
# if working with newer repos where 'master' is now 'main'
git fetch --all
git reset --hard origin/main
# if working with newer repos where 'master' is now 'main'
git fetch --all
git reset --hard origin/main