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