how to undo last action in git code example
Example 1: git revert to repo version
git fetch origin
git reset --hard origin/master
Example 2: git reflog reset
git reset HEAD@{1}
git fetch origin
git reset --hard origin/master
git reset HEAD@{1}