android studio how to force pull code example
Example 1: git pull hard
git reset --hard origin/master
Example 2: force git pull overwrite
# if working with newer repos where 'master' is now 'main'
git fetch --all
git reset --hard origin/main
git reset --hard origin/master
# if working with newer repos where 'master' is now 'main'
git fetch --all
git reset --hard origin/main