how to undo changes in local git code example
Example 1: git remove my local changes and pull from master
git reset --hard <your commit hash key>
Example 2: how to undo git clean -fd command
git clean -fdxn
git reset --hard <your commit hash key>
git clean -fdxn