git pull from remote branch overwrite local code example Example: git pull from remote branch overwrite local git reset --hard origin/master