how to swap local code with remote branch code example
Example 1: oevrride localwith remote branch
git reset --hard origin/master
Example 2: git get remote branch
git fetch
git checkout test
git reset --hard origin/master
git fetch
git checkout test