discard changes in local branch git and pull from master code example
Example 1: git delete changes
git clean -df
git checkout -- .
Example 2: git remove my local changes and pull from master
git reset --hard <your commit hash key>
git clean -df
git checkout -- .
git reset --hard <your commit hash key>