Force "git pull" and reset local branch from origin


First, run a fetch to update all origin/<branch> refs to latest:

git fetch --all

Backup your current branch:

git checkout -b backup-master

Then, you have two options:

git reset --hard origin/master

OR If you are on some other branch:

git reset --hard origin/<branch_name>

Revision #1
Created Wed, Feb 10, 2021 3:14 PM by Rafael
Updated Wed, Feb 10, 2021 3:17 PM by Rafael