git override local branch from remote code example
Example 1: git replace local branch with remote
git reset --hard origin/master
Example 2: oevrride localwith remote branch
git reset --hard origin/master
git reset --hard origin/master
git reset --hard origin/master