overwrite local with remote branch 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