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