Today I Learned: in order to overwrite local changes with remote from origin, you can do:

  1. update all origin/<branch> refs to latest
git fetch --all
  1. backup branch
git branch backup-main
  1. jump to latest commit on origin/main and checkout those files
git reset --hard origin/main

Link to SO