git force checkout remote branch discating local changes} code example
Example: git replace local branch with remote
git fetch
git reset --hard origin/{{branch}}
# replace {{branch}} with name
git fetch
git reset --hard origin/{{branch}}
# replace {{branch}} with name