how to force pull remote branch 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