Robert blogs what learned today
Git Force Pull
Today I Learned: in order to overwrite local changes with remote from origin, you can do:
- update all
origin/<branch>refs to latest
git fetch --all
- backup branch
git branch backup-main
- jump to latest commit on
origin/mainand checkout those files
git reset --hard origin/main
Link to SO