git force pull from upstream discard changes code example Example: git force pull from upstream discard changes git reset --hard git pull