Reset branch to origin
In order to reset a branch to the remote/origin version:
Main
git checkout main
git fetch origin
git reset --hard origin/main
Other branch
git checkout (branch)
git fetch origin
git reset --hard origin/(branch)
In order to reset a branch to the remote/origin version:
git checkout main
git fetch origin
git reset --hard origin/main
git checkout (branch)
git fetch origin
git reset --hard origin/(branch)